Michał W. Urbańczyk 14 年之前
父节点
当前提交
092ab5a77f
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      client/CPlayerInterface.cpp

+ 3 - 0
client/CPlayerInterface.cpp

@@ -352,6 +352,9 @@ void CPlayerInterface::heroKilled(const CGHeroInstance* hero)
 {
 	boost::unique_lock<boost::recursive_mutex> un(*pim);
 	wanderingHeroes -= hero;
+	if(vstd::contains(paths, hero)) 
+		paths.erase(hero);
+
 	adventureInt->heroList.updateHList(hero);
 }
 void CPlayerInterface::heroCreated(const CGHeroInstance * hero)