mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-29 12:43:07 +00:00
Move cached value into container to be removed
This commit is contained in:
parent
d3dca99a76
commit
5f4bd498cf
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue