1
0
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:
Michał W. Urbańczyk 2011-08-26 23:45:00 +00:00
parent a8a437ccb0
commit 33020cf953

View File

@ -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);
}