Explorar el Código

Fix crash on battlefield deserialization

Ivan Savenko hace 1 año
padre
commit
842d66afbc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/constants/EntityIdentifiers.cpp

+ 1 - 1
lib/constants/EntityIdentifiers.cpp

@@ -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()