From a3ebe8727f26e6b23673bc45c2164cdb0925b0ca Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 31 Jan 2020 17:35:44 -0500 Subject: [PATCH] CScriptSound: Remove active check within AcceptScriptMsg() deactivate path Game code doesn't check for active status within this branch, and there's no comment indicating whether or not this difference was intentional. --- Runtime/World/CScriptSound.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Runtime/World/CScriptSound.cpp b/Runtime/World/CScriptSound.cpp index f32e32af1..8fcc6504f 100644 --- a/Runtime/World/CScriptSound.cpp +++ b/Runtime/World/CScriptSound.cpp @@ -158,8 +158,7 @@ void CScriptSound::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CSta StopSound(mgr); } break; case EScriptObjectMessage::Deactivate: { - if (GetActive()) - StopSound(mgr); + StopSound(mgr); } break; case EScriptObjectMessage::Activate: { if (GetActive())