mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Fixed fix for #771.
This commit is contained in:
parent
a8a437ccb0
commit
33020cf953
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user