diff options
author | Chris Robinson <[email protected]> | 2023-04-28 22:49:45 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-04-28 22:49:45 -0700 |
commit | 234174c62123c5d2f57d649722b5ca53b0de9d2d (patch) | |
tree | 0ff0cb9c5fca501bb5e8d21684eaa181060bab5f /al/auxeffectslot.cpp | |
parent | 102789d4487a8dbbb13a131dde3d21a612e86adb (diff) |
Don't try to access null pointers
Diffstat (limited to 'al/auxeffectslot.cpp')
-rw-r--r-- | al/auxeffectslot.cpp | 3 |
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) { |