Michał W. Urbańczyk 14 years ago
parent
commit
092ab5a77f
1 changed files with 3 additions and 0 deletions
  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)