1
0
Fork 0
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:
elsid 2021-07-10 13:02:28 +02:00
parent d4a2dab9d9
commit 153cd9a20c
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40

View file

@ -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);