mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-31 14:36:39 +00:00
Avoid redundant search for existing element
This commit is contained in:
parent
d4a2dab9d9
commit
153cd9a20c
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ namespace MWWorld
|
|||
if (found->second.mWorkItem)
|
||||
{
|
||||
found->second.mWorkItem->abort();
|
||||
mUnrefQueue->push(mPreloadCells[cell].mWorkItem);
|
||||
mUnrefQueue->push(std::move(found->second.mWorkItem));
|
||||
}
|
||||
|
||||
mPreloadCells.erase(found);
|
||||
|
|
Loading…
Reference in a new issue