mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Remove unused placeholdedHeroes field
This commit is contained in:
parent
53b5587c2e
commit
4ebafa17b4
@ -259,7 +259,7 @@ public:
|
||||
std::vector<PlayerInfo> players; /// The default size of the vector is PlayerColor::PLAYER_LIMIT.
|
||||
ui8 howManyTeams;
|
||||
std::vector<bool> allowedHeroes;
|
||||
std::vector<ui16> placeholdedHeroes;
|
||||
|
||||
bool areAnyPlayers; /// Unused. True if there are any playable players on the map.
|
||||
|
||||
/// "main quests" of the map that describe victory and loss conditions
|
||||
|
@ -615,10 +615,15 @@ void CMapLoaderH3M::readAllowedHeroes()
|
||||
if(mapHeader->version > EMapFormat::ROE)
|
||||
{
|
||||
int placeholdersQty = reader.readUInt32();
|
||||
for(int p = 0; p < placeholdersQty; ++p)
|
||||
{
|
||||
mapHeader->placeholdedHeroes.push_back(reader.readUInt8());
|
||||
}
|
||||
|
||||
reader.skip(placeholdersQty * 1);
|
||||
|
||||
// std::vector<ui16> placeholdedHeroes;
|
||||
//
|
||||
// for(int p = 0; p < placeholdersQty; ++p)
|
||||
// {
|
||||
// placeholdedHeroes.push_back(reader.readUInt8());
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user