mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-18 14:42:27 +00:00
Swap outside critical section
This commit is contained in:
parent
8d2af94b75
commit
849f2078c1
@ -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…
x
Reference in New Issue
Block a user