diff options
-rw-r--r-- | al/source.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/al/source.cpp b/al/source.cpp index f119ee36..a440a04b 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -1923,7 +1923,8 @@ NOINLINE void SetProperty(ALsource *const Source, ALCcontext *const Context, con ALeffectslot *slot{}; if(values[0]) { - if((slot=LookupEffectSlot(Context, slotid)) == nullptr) UNLIKELY + slot = LookupEffectSlot(Context, slotid); + if(!slot) UNLIKELY return Context->setError(AL_INVALID_VALUE, "Invalid effect ID %s", std::to_string(slotid).c_str()); } |