Prevent possible crash

This commit is contained in:
Twinaphex 2016-03-11 10:16:23 +01:00
parent 761ece0f3c
commit ca480ef459

View File

@ -323,7 +323,8 @@ bool core_ctl(enum core_ctl_state state, void *data)
core_input_polled = false;
break;
}
core.retro_run();
if (core.retro_run)
core.retro_run();
if (core_poll_type == POLL_TYPE_LATE && !core_input_polled)
{
input_poll();