Merge pull request #138 from lioncash/sound

CScriptSound: Remove active check within AcceptScriptMsg() deactivate path
This commit is contained in:
Phillip Stephens 2020-01-31 14:48:28 -08:00 committed by GitHub
commit cbf7140d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -158,8 +158,7 @@ void CScriptSound::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CSta
StopSound(mgr); StopSound(mgr);
} break; } break;
case EScriptObjectMessage::Deactivate: { case EScriptObjectMessage::Deactivate: {
if (GetActive()) StopSound(mgr);
StopSound(mgr);
} break; } break;
case EScriptObjectMessage::Activate: { case EScriptObjectMessage::Activate: {
if (GetActive()) if (GetActive())