Browse Source

Fix crash on battlefield deserialization

Ivan Savenko 2 năm trước cách đây
mục cha
commit
842d66afbc
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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()