mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Fix crash on battlefield deserialization
This commit is contained in:
parent
71825fcc4e
commit
842d66afbc
@ -371,7 +371,7 @@ si32 BattleField::decode(const std::string & identifier)
|
||||
|
||||
std::string BattleField::encode(const si32 index)
|
||||
{
|
||||
return VLC->spells()->getByIndex(index)->getJsonKey();
|
||||
return VLC->battlefields()->getByIndex(index)->getJsonKey();
|
||||
}
|
||||
|
||||
std::string SpellID::entityType()
|
||||
|
Loading…
Reference in New Issue
Block a user