|
|
@@ -54,9 +54,8 @@ void MapRendererContextState::addObject(const CGObjectInstance * obj)
|
|
|
if(LOCPLINT->cb->isInTheMap(currTile) && obj->coveringAt(currTile))
|
|
|
{
|
|
|
auto & container = objects[currTile.z][currTile.x][currTile.y];
|
|
|
-
|
|
|
- container.push_back(obj->id);
|
|
|
- boost::range::sort(container, compareObjectBlitOrder);
|
|
|
+ auto position = std::upper_bound(container.begin(), container.end(), obj->id, compareObjectBlitOrder);
|
|
|
+ container.insert(position, obj->id);
|
|
|
}
|
|
|
}
|
|
|
}
|