Skip to content

Commit

Permalink
EffectDispatcher: Don't run effect threads when doing unsafe cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pongo1231 committed Feb 26, 2025
1 parent 4a2e9c6 commit 74973f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ChaosMod/Components/EffectDispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ EffectDispatcher::EffectDispatcher(const std::array<BYTE, 3> &textColor, const s

void EffectDispatcher::OnModPauseCleanup(PauseCleanupFlags cleanupFlags)
{
ClearEffects();
if (!(cleanupFlags & PauseCleanupFlags_UnsafeCleanup))
ClearEffects();
}

void EffectDispatcher::OnRun()
Expand Down

0 comments on commit 74973f0

Please sign in to comment.