Add a safety check for non-rtti.

This commit is contained in:
Unknown W. Brackets committed 2013-06-09 08:35:54 -07:00
1 parent 104a3a316b
commit fe1c26f2b2
1 file changed
+2 -1
+2 -1
View File
@@ -2825,7 +2825,8 @@ ActionAfterMipsCall *Thread::getRunningCallbackAction()
if (call)
action = static_cast<ActionAfterMipsCall *>(call->doAfter);
if (!call || !action) {
// We don't have rtti, so check manually.
if (!call || !action || action->actionTypeID != actionAfterMipsCall) {
ERROR_LOG(HLE, "Failed to access deferred info for thread: %s", this->nt.name);
return NULL;
}