code cleanup from cpp check

This commit is contained in:
Mark Vejvoda 2013-11-09 03:16:41 +00:00
parent d65ffb1815
commit 23cab07fe8
1 changed files with 1 additions and 1 deletions

View File

@ -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) {