瀏覽代碼

Fix implicit cast from tribool to bool.

Mikko 6 年之前
父節點
當前提交
5b8ff278b9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/windows/CAdvmapInterface.cpp

+ 1 - 1
client/windows/CAdvmapInterface.cpp

@@ -880,7 +880,7 @@ void CAdvMapInt::updateMoveHero(const CGHeroInstance *h, tribool hasPath)
 	if(boost::logic::indeterminate(hasPath))
 		hasPath = LOCPLINT->paths[h].nodes.size() ? true : false;
 
-	moveHero->block(!hasPath || (h->movement == 0));
+	moveHero->block(!(bool)hasPath || (h->movement == 0));
 }
 
 void CAdvMapInt::updateSpellbook(const CGHeroInstance *h)