mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-04 05:45:35 +00:00
std::set to std::unique and erase.
This commit is contained in:
parent
6a44cae572
commit
da4abcd7c1
1 changed files with 1 additions and 2 deletions
|
@ -247,8 +247,7 @@ void CSVRender::TerrainShapeMode::dragWheel (int diff, double speedFactor)
|
|||
void CSVRender::TerrainShapeMode::applyTerrainEditChanges()
|
||||
{
|
||||
std::sort(mAlteredCells.begin(), mAlteredCells.end());
|
||||
std::set<CSMWorld::CellCoordinates> removeDuplicates(mAlteredCells.begin(), mAlteredCells.end());
|
||||
mAlteredCells.assign(removeDuplicates.begin(), removeDuplicates.end());
|
||||
mAlteredCells.erase(std::unique(mAlteredCells.begin(), mAlteredCells.end()), mAlteredCells.end());
|
||||
|
||||
CSMDoc::Document& document = getWorldspaceWidget().getDocument();
|
||||
CSMWorld::IdTable& landTable = dynamic_cast<CSMWorld::IdTable&> (
|
||||
|
|
Loading…
Reference in a new issue