From 23cab07fe8cbc244cc716f6d7721b60a0a29d82b Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Sat, 9 Nov 2013 03:16:41 +0000 Subject: [PATCH] code cleanup from cpp check --- source/glest_game/ai/path_finder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/ai/path_finder.cpp b/source/glest_game/ai/path_finder.cpp index 9bae7e02..613a34a5 100644 --- a/source/glest_game/ai/path_finder.cpp +++ b/source/glest_game/ai/path_finder.cpp @@ -911,7 +911,7 @@ TravelState PathFinder::aStar(Unit *unit, const Vec2i &targetPos, bool inBailout codeLocation = "41"; safeMutex.Lock(); - if(faction.closedNodesList.size() > 0) { + if(faction.closedNodesList.empty() == false) { codeLocation = "42"; float bestHeuristic = faction.closedNodesList.begin()->first; if(bestHeuristic < lastNode->heuristic) {