Code: Select all
void ResourceManager::_notifyResourceUnloaded(Resource* res)
{
mMemoryUsage += -(res->getSize());
}
EDIT:
just looked at AtomicScalar, the type of mMemoryUsage. It only has a operator +=, I assume a operator -= is needed at that location or a templated version of just the operator +=.