mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
Fixed fix for #771.
This commit is contained in:
@@ -243,7 +243,9 @@ void HeroVisit::applyCl( CClient *cl )
|
||||
|
||||
void NewTurn::applyCl( CClient *cl )
|
||||
{
|
||||
cl->updatePaths();
|
||||
//cl->updatePaths(); => may fail when there is no selected (mechanically) hero
|
||||
if(cl->pathInfo->hero)
|
||||
cl->calculatePaths(cl->pathInfo->hero);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user