aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-02-01 00:50:06 -0800
committerChris Robinson <[email protected]>2018-02-01 00:50:06 -0800
commit8652ae046b9d32a2a0bf936c3655f5f23b33ccba (patch)
treef5bb44f38b002e286f2731d2baee794cd270396f /OpenAL32
parent833eface3875d64274c9b56dd6059535cf510f28 (diff)
Fix check for matching event type
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/event.c2
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);
}