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:
parent
4652151630
commit
aa808d63bc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user