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

Use ArtifactInstanceID in CGArtifact

This commit is contained in:
Ivan Savenko
2025-03-18 20:38:12 +00:00
parent ab11d2b075
commit 16a06179cf
11 changed files with 53 additions and 39 deletions

View File

@@ -1089,10 +1089,10 @@ void CMapLoaderJson::MapObjectLoader::configure()
else if(art->ID == Obj::ARTIFACT)
{
//specific artifact
artID = art->getArtifact();
artID = art->getArtifactType();
}
art->storedArtifact = owner->map->createArtifact(artID, spellID.getNum());
art->setArtifactInstance(owner->map->createArtifact(artID, spellID.getNum()));
}
if(auto hero = std::dynamic_pointer_cast<CGHeroInstance>(instance))