mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Fix for #662.
This commit is contained in:
@@ -352,6 +352,9 @@ void CPlayerInterface::heroKilled(const CGHeroInstance* hero)
|
|||||||
{
|
{
|
||||||
boost::unique_lock<boost::recursive_mutex> un(*pim);
|
boost::unique_lock<boost::recursive_mutex> un(*pim);
|
||||||
wanderingHeroes -= hero;
|
wanderingHeroes -= hero;
|
||||||
|
if(vstd::contains(paths, hero))
|
||||||
|
paths.erase(hero);
|
||||||
|
|
||||||
adventureInt->heroList.updateHList(hero);
|
adventureInt->heroList.updateHList(hero);
|
||||||
}
|
}
|
||||||
void CPlayerInterface::heroCreated(const CGHeroInstance * hero)
|
void CPlayerInterface::heroCreated(const CGHeroInstance * hero)
|
||||||
|
|||||||
Reference in New Issue
Block a user