From 25ec896545ff282e009f2c06fe24c72bf8ea217c Mon Sep 17 00:00:00 2001 From: bryanthaboi Date: Tue, 18 Aug 2026 10:14:44 -0400 Subject: [PATCH] fix(audio): do not stop the move sfx source the replay just restarted The takeover stop in Sound.playMove moved after the new source starts in cfa84063, but an equal-id replay reuses the cached source, so the stop killed the sound it had just restarted. --- src/core/Sound.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/Sound.lua b/src/core/Sound.lua index 26433019..5e0d5827 100644 --- a/src/core/Sound.lua +++ b/src/core/Sound.lua @@ -550,7 +550,9 @@ function Sound.playMove(data, anim) end -- audio/engine_2.asm:1537 if superseded then - for old in pairs(superseded) do pcall(old.stop, old) end + for old in pairs(superseded) do + if old ~= src then pcall(old.stop, old) end + end end if src then played("move", name)