mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Artifact instances are now owned solely by CMap
This commit is contained in:
@@ -483,8 +483,7 @@ CGHeroInstance * CampaignState::crossoverDeserialize(const JsonNode & node, CMap
|
||||
hero->serializeJsonOptions(handler);
|
||||
if (map)
|
||||
{
|
||||
hero->serializeJsonArtifacts(handler, "artifacts");
|
||||
map->addNewArtifactInstance(*hero);
|
||||
hero->serializeJsonArtifacts(handler, "artifacts", map);
|
||||
}
|
||||
return hero;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user