mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
First step at unifying game identifiers code
This commit is contained in:
@@ -396,7 +396,7 @@ void CMapFormatJson::serializeAllowedFactions(JsonSerializeFormat & handler, std
|
||||
if(handler.saving)
|
||||
{
|
||||
for(auto faction : VLC->townh->objects)
|
||||
if(faction->town && vstd::contains(value, faction->getIndex()))
|
||||
if(faction->town && vstd::contains(value, faction->getId()))
|
||||
temp[static_cast<std::size_t>(faction->getIndex())] = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user