Michał W. Urbańczyk 14 lat temu
rodzic
commit
33020cf953
1 zmienionych plików z 3 dodań i 1 usunięć
  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);
 }