mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +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 )
|
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