修复BGM.stop调用方法不正确(类型错误)直接爆炸

This commit is contained in:
MrZ626
2020-12-07 16:30:13 +08:00
parent 5341a0fc3b
commit 9b33f56456

View File

@@ -80,7 +80,7 @@ function BGM.freshVolume()
end
function BGM.stop()
TASK.removeTask_code(fadeIn)
if BGM.nowPlay then TASK.new(fadeOut,BGM.nowPlay)end
if BGM.nowPlay then TASK.new(fadeOut,BGM.playing)end
BGM.nowPlay,BGM.playing=nil
end
return BGM