mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-18 17:40:48 +02:00
Compilation fix.
This commit is contained in:
parent
0f8adabd71
commit
52ddc9e32b
@ -143,15 +143,19 @@ void MapController::commitObjectErase(int level)
|
||||
}
|
||||
else if (selectedObjects.size() == 1)
|
||||
{
|
||||
_map->getEditManager()->removeObject(selectedObjects.front());
|
||||
//invalidate tiles under object
|
||||
_mapHandler->invalidate(_mapHandler->geTilesUnderObject(selectedObjects.front()));
|
||||
_map->getEditManager()->removeObject(*selectedObjects.begin());
|
||||
}
|
||||
else //nothing to erase - shouldn't be here
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
for (auto obj : selectedObjects)
|
||||
{
|
||||
//invalidate tiles under objects
|
||||
_mapHandler->invalidate(_mapHandler->geTilesUnderObject(obj));
|
||||
}
|
||||
|
||||
_scenes[level]->selectionObjectsView.clear();
|
||||
_scenes[level]->objectsView.draw();
|
||||
_scenes[level]->selectionObjectsView.draw();
|
||||
|
Loading…
Reference in New Issue
Block a user