mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(OSX PPC) Prevent one null pointer dereference
This commit is contained in:
parent
c0212e06a9
commit
9a8a20e85a
@ -2113,7 +2113,8 @@ void rarch_main_set_state(unsigned cmd)
|
||||
video_driver_set_texture_enable(false, false);
|
||||
break;
|
||||
case RARCH_ACTION_STATE_QUIT:
|
||||
global->system.shutdown = true;
|
||||
if (global)
|
||||
global->system.shutdown = true;
|
||||
rarch_main_set_state(RARCH_ACTION_STATE_MENU_RUNNING_FINISHED);
|
||||
break;
|
||||
case RARCH_ACTION_STATE_FORCE_QUIT:
|
||||
|
Loading…
x
Reference in New Issue
Block a user