diff --git a/Runtime/World/CScriptSound.cpp b/Runtime/World/CScriptSound.cpp index 497681a17..fff93d4d9 100644 --- a/Runtime/World/CScriptSound.cpp +++ b/Runtime/World/CScriptSound.cpp @@ -97,7 +97,7 @@ void CScriptSound::StopSound(CStateManager& mgr) } else if (xec_sfxHandle) { - CSfxManager::RemoveEmitter(xec_sfxHandle); + CSfxManager::RemoveEmitter(*xec_sfxHandle.get()); xec_sfxHandle.reset(); } }