Prevent possible crash

This commit is contained in:
Twinaphex 2016-03-11 10:16:23 +01:00
parent 761ece0f3c
commit ca480ef459
1 changed files with 2 additions and 1 deletions

View File

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