mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-30 10:36:51 +00:00
Swap outside critical section
This commit is contained in:
parent
8d2af94b75
commit
849f2078c1
1 changed files with 1 additions and 1 deletions
|
@ -61,8 +61,8 @@ namespace DetourNavigator
|
||||||
for (const auto& tile : currentTiles)
|
for (const auto& tile : currentTiles)
|
||||||
if (!newTiles.count(tile) && removeTile(id, tile, tiles.get()))
|
if (!newTiles.count(tile) && removeTile(id, tile, tiles.get()))
|
||||||
changedTiles.push_back(tile);
|
changedTiles.push_back(tile);
|
||||||
std::swap(currentTiles, newTiles);
|
|
||||||
}
|
}
|
||||||
|
std::swap(currentTiles, newTiles);
|
||||||
if (!changedTiles.empty())
|
if (!changedTiles.empty())
|
||||||
++mRevision;
|
++mRevision;
|
||||||
return changedTiles;
|
return changedTiles;
|
||||||
|
|
Loading…
Reference in a new issue