diff options
author | Chris Robinson <[email protected]> | 2018-02-01 00:50:06 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-02-01 00:50:06 -0800 |
commit | 8652ae046b9d32a2a0bf936c3655f5f23b33ccba (patch) | |
tree | f5bb44f38b002e286f2731d2baee794cd270396f | |
parent | 833eface3875d64274c9b56dd6059535cf510f28 (diff) |
Fix check for matching event type
-rw-r--r-- | OpenAL32/event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/event.c b/OpenAL32/event.c index 82a6efb1..ff53d7d8 100644 --- a/OpenAL32/event.c +++ b/OpenAL32/event.c @@ -40,7 +40,7 @@ static int EventThread(void *arg) /* Should check the actual type is enabled here too. */ enabledevts = ATOMIC_LOAD(&context->EnabledEvts, almemory_order_acquire); - if(context->EventCb && (enabledevts&evt.EnumType) != evt.EnumType) + if(context->EventCb && (enabledevts&evt.EnumType) == evt.EnumType) context->EventCb(evt.Type, evt.ObjectId, evt.Param, (ALsizei)strlen(evt.Message), evt.Message, context->EventParam); } |