mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Artifact instances are now owned solely by CMap
This commit is contained in:
@@ -278,7 +278,7 @@ void TreasurePlacer::addScrolls()
|
||||
if(map.isAllowedSpell(spellID) && spellID.toSpell()->getLevel() == i + 1)
|
||||
out.push_back(spellID);
|
||||
}
|
||||
auto * a = ArtifactUtils::createScroll(*RandomGeneratorUtil::nextItem(out, zone.getRand()));
|
||||
auto * a = map.mapInstance->createScroll(*RandomGeneratorUtil::nextItem(out, zone.getRand()));
|
||||
obj->storedArtifact = a;
|
||||
return obj;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user