mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-29 17:15:34 +00:00
Return nullptr straight away
This commit is contained in:
parent
4652151630
commit
aa808d63bc
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue