From 842d66afbcbcfb9b041fed4453a9418d80a17a47 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Mon, 20 Nov 2023 19:57:07 +0200 Subject: [PATCH] Fix crash on battlefield deserialization --- lib/constants/EntityIdentifiers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/constants/EntityIdentifiers.cpp b/lib/constants/EntityIdentifiers.cpp index d119c0f76..60cf811c2 100644 --- a/lib/constants/EntityIdentifiers.cpp +++ b/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()