1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Fix crash on loading vmap's

This commit is contained in:
Ivan Savenko 2024-04-08 13:16:34 +03:00
parent 8582bd7d66
commit 4947baebee

View File

@ -685,6 +685,9 @@ void CGSeerHut::serializeJsonOptions(JsonSerializeFormat & handler)
auto s = handler.enterStruct("reward");
const JsonNode & rewardsJson = handler.getCurrent();
if (rewardsJson.Struct().empty())
return;
std::string fullIdentifier;
std::string metaTypeName;
std::string scope;