mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 17:36:42 +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)
|
||||
if (!newTiles.count(tile) && removeTile(id, tile, tiles.get()))
|
||||
changedTiles.push_back(tile);
|
||||
std::swap(currentTiles, newTiles);
|
||||
}
|
||||
std::swap(currentTiles, newTiles);
|
||||
if (!changedTiles.empty())
|
||||
++mRevision;
|
||||
return changedTiles;
|
||||
|
|
Loading…
Reference in a new issue