Prevent null pointer dereference

This commit is contained in:
twinaphex 2016-09-29 10:07:41 +02:00
parent 23f91bf8d4
commit 30a46a5ab9

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
* mysterious ways, have to disable it. */
if (global->netplay.enable)
if (global && global->netplay.enable)
return false;
#endif
runloop_frame_time = *info;