1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-27 06:14:09 +00:00

Return nullptr straight away

This commit is contained in:
Evil Eye 2024-08-21 16:40:39 +02:00
parent 4652151630
commit aa808d63bc

View File

@ -111,8 +111,7 @@ namespace LuaUtil
if (!newPtr)
{
Log(Debug::Error) << "Lua realloc " << osize << "->" << nsize << " failed";
smallAllocDelta = 0;
bigAllocDelta = 0;
return nullptr;
}
}
self->mTotalMemoryUsage += smallAllocDelta + bigAllocDelta;