diff --git a/rpcs3/Emu/Cell/lv2/sys_config.h b/rpcs3/Emu/Cell/lv2/sys_config.h index fd0e1210b5..77f5f4654a 100644 --- a/rpcs3/Emu/Cell/lv2/sys_config.h +++ b/rpcs3/Emu/Cell/lv2/sys_config.h @@ -347,8 +347,12 @@ class lv2_config_service_event { static u32 get_next_id() { - static atomic_t next_id = 0; - return next_id++; + struct service_event_id + { + atomic_t next_id = 0; + }; + + return g_fxo->get()->next_id++; } public: