mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Reduced number of accesses to CGObjectInstance::subID
This commit is contained in:
@@ -1229,7 +1229,7 @@ void CMapLoaderJson::MapObjectLoader::configure()
|
||||
else if(art->ID == Obj::ARTIFACT)
|
||||
{
|
||||
//specific artifact
|
||||
artID = ArtifactID(art->subID);
|
||||
artID = art->getArtifact();
|
||||
}
|
||||
|
||||
art->storedArtifact = ArtifactUtils::createArtifact(owner->map, artID, spellID.getNum());
|
||||
|
||||
Reference in New Issue
Block a user