mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
CGSubterraneanGate::postInit put const back
Originally I removed it when change this code to actually change object. Though this sorting can work with constant object just fine.
This commit is contained in:
parent
826a64b579
commit
606013c535
@ -977,7 +977,7 @@ void CGSubterraneanGate::postInit( CGameState * gs ) //matches subterranean gate
|
||||
}
|
||||
|
||||
//sort by position
|
||||
std::sort(gatesSplit[0].begin(), gatesSplit[0].end(), [](CGSubterraneanGate * a, CGSubterraneanGate * b)
|
||||
std::sort(gatesSplit[0].begin(), gatesSplit[0].end(), [](const CGObjectInstance * a, const CGObjectInstance * b)
|
||||
{
|
||||
return a->pos < b->pos;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user