瀏覽代碼

Fix crash on battlefield deserialization

Ivan Savenko 1 年之前
父節點
當前提交
842d66afbc
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)
 std::string BattleField::encode(const si32 index)
 {
 {
-	return VLC->spells()->getByIndex(index)->getJsonKey();
+	return VLC->battlefields()->getByIndex(index)->getJsonKey();
 }
 }
 
 
 std::string SpellID::entityType()
 std::string SpellID::entityType()