mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
vcmi: remove TFaction
This is a huge change and will break save compatibility
This commit is contained in:
@@ -251,10 +251,10 @@ void CMapLoaderH3M::readPlayerInfo()
|
||||
{
|
||||
mapHeader->players[i].allowedFactions.clear();
|
||||
|
||||
for(int fact = 0; fact < totalFactions; ++fact)
|
||||
for(auto fact = 0; fact < totalFactions; ++fact)
|
||||
{
|
||||
if(allowedFactions & (1 << fact))
|
||||
mapHeader->players[i].allowedFactions.insert(fact);
|
||||
mapHeader->players[i].allowedFactions.insert(FactionID(fact));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user