浏览代码

Fix NodeComparer::operator() to follow strict weak ordering rules

This fixes annoying assertion failures in MSVC builds
Victor Luchits 8 年之前
父节点
当前提交
e9e311f142
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/CPathfinder.h

+ 1 - 1
lib/CPathfinder.h

@@ -177,7 +177,7 @@ private:
 		{
 			if(rhs->turns > lhs->turns)
 				return false;
-			else if(rhs->turns == lhs->turns && rhs->moveRemains < lhs->moveRemains)
+			else if(rhs->turns == lhs->turns && rhs->moveRemains <= lhs->moveRemains)
 				return false;
 
 			return true;