mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 00:33:34 +01:00
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:
1 parent
02ec457cc9
commit
1583bcb499
1 file changed
+2
-1
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user