aboutsummaryrefslogtreecommitdiffstats
path: root/al/auxeffectslot.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-04-28 22:49:45 -0700
committerChris Robinson <[email protected]>2023-04-28 22:49:45 -0700
commit234174c62123c5d2f57d649722b5ca53b0de9d2d (patch)
tree0ff0cb9c5fca501bb5e8d21684eaa181060bab5f /al/auxeffectslot.cpp
parent102789d4487a8dbbb13a131dde3d21a612e86adb (diff)
Don't try to access null pointers
Diffstat (limited to 'al/auxeffectslot.cpp')
-rw-r--r--al/auxeffectslot.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp
index 285da1d4..571eb717 100644
--- a/al/auxeffectslot.cpp
+++ b/al/auxeffectslot.cpp
@@ -1023,6 +1023,9 @@ void UpdateAllEffectSlotProps(ALCcontext *context)
EffectSlotSubList::~EffectSlotSubList()
{
+ if(!EffectSlots)
+ return;
+
uint64_t usemask{~FreeMask};
while(usemask)
{