From 4d93e02674e2c904dc8acd56ae1ac39f1fccf4a3 Mon Sep 17 00:00:00 2001 From: pongo1231 Date: Fri, 16 Feb 2024 23:09:14 +0000 Subject: [PATCH] ChaosMod/EffectDispatcher: Play custom sounds if MetaModifiers component doesn't exist --- ChaosMod/Components/EffectDispatcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChaosMod/Components/EffectDispatcher.cpp b/ChaosMod/Components/EffectDispatcher.cpp index a3b59f507..ce3f7b201 100644 --- a/ChaosMod/Components/EffectDispatcher.cpp +++ b/ChaosMod/Components/EffectDispatcher.cpp @@ -61,7 +61,7 @@ static void _DispatchEffect(EffectDispatcher *effectDispatcher, const EffectDisp auto playEffectDispatchSound = [&]() { - if ((ComponentExists() && !GetComponent()->HideChaosUI) + if ((!ComponentExists() || GetComponent()->HideChaosUI) && ComponentExists()) { // Play global sound (if one exists)