Browse Source

Fixed fix for #771.

Michał W. Urbańczyk 14 years ago
parent
commit
33020cf953
1 changed files with 3 additions and 1 deletions
  1. 3 1
      client/NetPacksClient.cpp

+ 3 - 1
client/NetPacksClient.cpp

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