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:
parent
766fb066c6
commit
255bb145b9
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user