Explorar o código

Fixed fix for #771.

Michał W. Urbańczyk %!s(int64=14) %!d(string=hai) anos
pai
achega
33020cf953
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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);
 }