浏览代码

Fixed fix for #771.

Michał W. Urbańczyk 14 年之前
父节点
当前提交
33020cf953
共有 1 个文件被更改,包括 3 次插入1 次删除
  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 )
 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);
 }
 }