mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
Fix lv2_config_service_event event id reset
This commit is contained in:
parent
114b9498bf
commit
f88a135b5b
1 changed files with 6 additions and 2 deletions
|
@ -347,8 +347,12 @@ class lv2_config_service_event
|
|||
{
|
||||
static u32 get_next_id()
|
||||
{
|
||||
static atomic_t<u32> next_id = 0;
|
||||
return next_id++;
|
||||
struct service_event_id
|
||||
{
|
||||
atomic_t<u32> next_id = 0;
|
||||
};
|
||||
|
||||
return g_fxo->get<service_event_id>()->next_id++;
|
||||
}
|
||||
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue