Avoid load state crash if kernel objects fail.

This commit is contained in:
Unknown W. Brackets 2013-10-06 20:03:17 -07:00
parent ed5ae855e9
commit d3e566935a

View File

@ -548,6 +548,8 @@ void KernelObjectPool::DoState(PointerWrap &p)
p.Do(type);
}
pool[i]->DoState(p);
if (p.error >= p.ERROR_FAILURE)
break;
}
}