1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Fix regresssion - crash on transferring hero to next scenario

This commit is contained in:
Ivan Savenko
2025-07-31 21:53:55 +03:00
parent 1744ebffdc
commit a036482a7d

View File

@@ -316,6 +316,8 @@ JsonNode CampaignState::crossoverSerialize(CGHeroInstance * hero) const
JsonNode node;
JsonSerializer handler(nullptr, node);
hero->serializeJsonOptions(handler);
node.setModScope(ModScope::scopeGame());
logGlobal->info(node.toString());
return node;
}