1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

Move cached value into container to be removed

This commit is contained in:
elsid 2023-08-27 16:02:46 +02:00
parent d3dca99a76
commit 5f4bd498cf
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

View File

@ -83,8 +83,8 @@ namespace Resource
{
if (oitr->second.second <= expiryTime)
{
if (oitr->second.first != nullptr)
objectsToRemove.push_back(oitr->second.first);
if (oitr->second.mValue != nullptr)
objectsToRemove.push_back(std::move(oitr->second.first));
_objectCache.erase(oitr++);
}
else