From 6718a49486b307ad938b707549ac1dfb78504300 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 30 Mar 2022 04:49:29 -0700 Subject: Replace a few asserts with actual checks or ASSUME() --- al/auxeffectslot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'al/auxeffectslot.cpp') 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 state{factory->create()}; Effect.State = state; -- cgit v1.2.3