瀏覽代碼

Fix remove artifacts during map load

Michał Zaremba 1 月之前
父節點
當前提交
249c9507e7
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      lib/mapping/MapFormatH3M.cpp

+ 1 - 2
lib/mapping/MapFormatH3M.cpp

@@ -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++)