1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fix remove artifacts during map load

This commit is contained in:
Michał Zaremba
2025-09-18 10:56:53 +02:00
parent b93249bba2
commit 249c9507e7

View File

@@ -925,8 +925,7 @@ void CMapLoaderH3M::loadArtifactsOfHero(CGHeroInstance * hero)
logGlobal->debug("Hero %d at %s has set artifacts twice (in map properties and on adventure map instance). Using the latter set...", hero->getHeroTypeID().getNum(), hero->anchorPos().toString());
hero->artifactsInBackpack.clear();
while(!hero->artifactsWorn.empty())
hero->removeArtifact(hero->artifactsWorn.begin()->first);
hero->artifactsWorn.clear();
}
for(int i = 0; i < features.artifactSlotsCount; i++)