mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Fix crash on loading vmap's
This commit is contained in:
parent
8582bd7d66
commit
4947baebee
@ -684,6 +684,9 @@ void CGSeerHut::serializeJsonOptions(JsonSerializeFormat & handler)
|
|||||||
//backward compatibility for VCMI maps that use old SeerHut format
|
//backward compatibility for VCMI maps that use old SeerHut format
|
||||||
auto s = handler.enterStruct("reward");
|
auto s = handler.enterStruct("reward");
|
||||||
const JsonNode & rewardsJson = handler.getCurrent();
|
const JsonNode & rewardsJson = handler.getCurrent();
|
||||||
|
|
||||||
|
if (rewardsJson.Struct().empty())
|
||||||
|
return;
|
||||||
|
|
||||||
std::string fullIdentifier;
|
std::string fullIdentifier;
|
||||||
std::string metaTypeName;
|
std::string metaTypeName;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user