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:
parent
d3dca99a76
commit
5f4bd498cf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user