mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
CMap removed from CArtifactSet level
This commit is contained in:
@ -1107,13 +1107,15 @@ void CMapLoaderJson::MapObjectLoader::configure()
|
||||
artID = art->getArtifact();
|
||||
}
|
||||
|
||||
art->storedArtifact = ArtifactUtils::createArtifact(owner->map, artID, spellID.getNum());
|
||||
art->storedArtifact = ArtifactUtils::createArtifact(artID, spellID.getNum());
|
||||
owner->map->addNewArtifactInstance(art->storedArtifact);
|
||||
}
|
||||
|
||||
if(auto * hero = dynamic_cast<CGHeroInstance *>(instance))
|
||||
{
|
||||
auto o = handler.enterStruct("options");
|
||||
hero->serializeJsonArtifacts(handler, "artifacts", owner->map);
|
||||
hero->serializeJsonArtifacts(handler, "artifacts");
|
||||
owner->map->addNewArtifactInstance(*hero);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user