소스 검색

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;