Prevent null pointer dereference

This commit is contained in:
twinaphex 2016-09-29 10:07:41 +02:00
parent 23f91bf8d4
commit 30a46a5ab9
1 changed files with 1 additions and 1 deletions

View File

@ -685,7 +685,7 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data)
/* retro_run() will be called in very strange and /* retro_run() will be called in very strange and
* mysterious ways, have to disable it. */ * mysterious ways, have to disable it. */
if (global->netplay.enable) if (global && global->netplay.enable)
return false; return false;
#endif #endif
runloop_frame_time = *info; runloop_frame_time = *info;