1
0
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:
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);
}