From 7c0605f09eabb55cd3f1b85474b31bfae584cde9 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 25 Nov 2018 07:40:15 -0800 Subject: Properly initialize the sublists' freemask --- OpenAL32/Include/alMain.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenAL32') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 5adabb18..5ff1e064 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -552,17 +552,17 @@ typedef union AmbiConfig { typedef struct BufferSubList { - ALuint64 FreeMask{0u}; + ALuint64 FreeMask{~ALuint64{}}; struct ALbuffer *Buffers{nullptr}; /* 64 */ } BufferSubList; typedef struct EffectSubList { - ALuint64 FreeMask{0u}; + ALuint64 FreeMask{~ALuint64{}}; struct ALeffect *Effects{nullptr}; /* 64 */ } EffectSubList; typedef struct FilterSubList { - ALuint64 FreeMask{0u}; + ALuint64 FreeMask{~ALuint64{}}; struct ALfilter *Filters{nullptr}; /* 64 */ } FilterSubList; -- cgit v1.2.3