mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix remove artifacts during map load
This commit is contained in:
@@ -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());
|
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();
|
hero->artifactsInBackpack.clear();
|
||||||
while(!hero->artifactsWorn.empty())
|
hero->artifactsWorn.clear();
|
||||||
hero->removeArtifact(hero->artifactsWorn.begin()->first);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for(int i = 0; i < features.artifactSlotsCount; i++)
|
for(int i = 0; i < features.artifactSlotsCount; i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user