mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-08 06:47:19 +00: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:
parent
02ec457cc9
commit
1583bcb499
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user