Skip to content

Commit

Permalink
ChaosMod/EffectDispatcher: Play custom sounds if MetaModifiers compon…
Browse files Browse the repository at this point in the history
…ent doesn't exist
  • Loading branch information
pongo1231 committed Feb 16, 2024
1 parent 9101375 commit 4d93e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ChaosMod/Components/EffectDispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static void _DispatchEffect(EffectDispatcher *effectDispatcher, const EffectDisp

auto playEffectDispatchSound = [&]()
{
if ((ComponentExists<MetaModifiers>() && !GetComponent<MetaModifiers>()->HideChaosUI)
if ((!ComponentExists<MetaModifiers>() || GetComponent<MetaModifiers>()->HideChaosUI)
&& ComponentExists<Mp3Manager>())
{
// Play global sound (if one exists)
Expand Down

0 comments on commit 4d93e02

Please sign in to comment.