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

Merge pull request #321 from viciious/nodecompare_fix

Fix NodeComparer::operator() to provide strict weak ordering
This commit is contained in:
Alexander Shishkin 2017-07-03 13:11:46 +03:00 committed by GitHub
commit d8545d9c3b

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;