aboutsummaryrefslogtreecommitdiffstats
path: root/al/auxeffectslot.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-03-30 04:49:29 -0700
committerChris Robinson <[email protected]>2022-03-30 05:01:06 -0700
commit6718a49486b307ad938b707549ac1dfb78504300 (patch)
treef72ac05b3ff23f4e2f4a5fadd8eb44d4967cb8de /al/auxeffectslot.cpp
parent9537c771054f6aa9445b1f3ddeb8abb348a2eb83 (diff)
Replace a few asserts with actual checks or ASSUME()
Diffstat (limited to 'al/auxeffectslot.cpp')
-rw-r--r--al/auxeffectslot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp
index c1577679..c33fb149 100644
--- a/al/auxeffectslot.cpp
+++ b/al/auxeffectslot.cpp
@@ -915,7 +915,7 @@ END_API_FUNC
ALeffectslot::ALeffectslot()
{
EffectStateFactory *factory{getFactoryByType(EffectSlotType::None)};
- assert(factory != nullptr);
+ if(!factory) throw std::runtime_error{"Failed to get null effect factory"};
al::intrusive_ptr<EffectState> state{factory->create()};
Effect.State = state;