1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

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

This fixes annoying assertion failures in MSVC builds
This commit is contained in:
Victor Luchits 2017-07-02 22:11:39 +03:00
parent 2f305cc68d
commit e9e311f142

View File

@ -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;