Fix a null check in sceKernel.cpp

Since CreateByIDType() can return null, it seems odd that this would be after the statement "pool[i]->uid = i + handleOffset;"
This commit is contained in:
Lioncash 2013-09-04 14:19:32 -04:00
parent 02ec457cc9
commit 1583bcb499

View File

@ -511,11 +511,12 @@ void KernelObjectPool::DoState(PointerWrap &p)
{
p.Do(type);
pool[i] = CreateByIDType(type);
pool[i]->uid = i + handleOffset;
// Already logged an error.
if (pool[i] == NULL)
return;
pool[i]->uid = i + handleOffset;
}
else
{