Fix the assert on no restore handler found

This commit is contained in:
Dr. Chat 2015-12-01 21:02:46 -06:00 committed by Ben Vanik
parent 6e0057020c
commit 785824531c
1 changed files with 1 additions and 3 deletions

View File

@ -144,11 +144,9 @@ object_ref<XObject> XObject::Restore(KernelState* kernel_state, Type type,
return XThread::Restore(kernel_state, stream);
case kTypeTimer:
break;
default:
assert_always("No restore handler exists for this object!");
return nullptr;
}
assert_always("No restore handler exists for this object!");
return nullptr;
}