1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Added fallback for 1.2 compatibility

This commit is contained in:
Ivan Savenko 2023-04-03 16:26:43 +03:00
parent 766fb066c6
commit 255bb145b9

View File

@ -892,6 +892,13 @@ void CTownHandler::loadTown(CTown * town, const JsonNode & source)
town->moatAbility = SpellID(ability);
});
}
else
{
VLC->modh->identifiers.requestIdentifier( source.meta, "spell", "castleMoat", [=](si32 ability)
{
town->moatAbility = SpellID(ability);
});
}
// Horde building creature level
for(const JsonNode &node : source["horde"].Vector())