From 5b8ff278b975371155878d2e9da490d1a057677a Mon Sep 17 00:00:00 2001 From: Mikko Date: Thu, 24 Jan 2019 14:45:40 +0000 Subject: [PATCH] Fix implicit cast from tribool to bool. --- client/windows/CAdvmapInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/windows/CAdvmapInterface.cpp b/client/windows/CAdvmapInterface.cpp index 80fdd9713..d50488272 100644 --- a/client/windows/CAdvmapInterface.cpp +++ b/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)