mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-04 22:14:25 +02:00
Merge pull request #321 from viciious/nodecompare_fix
Fix NodeComparer::operator() to provide strict weak ordering
This commit is contained in:
commit
d8545d9c3b
@ -177,7 +177,7 @@ private:
|
|||||||
{
|
{
|
||||||
if(rhs->turns > lhs->turns)
|
if(rhs->turns > lhs->turns)
|
||||||
return false;
|
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 false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user