From 80901c98337c928fa7f88c34897f227df65f1257 Mon Sep 17 00:00:00 2001 From: Treeki Date: Fri, 26 Apr 2013 18:33:51 +0200 Subject: don't stop non-existent sound in cutscenes --- src/cutScene.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/cutScene.cpp b/src/cutScene.cpp index 29f295e..6a0ddcd 100644 --- a/src/cutScene.cpp +++ b/src/cutScene.cpp @@ -230,8 +230,10 @@ int dScCutScene_c::onExecute() { if (delay != frameOffset) continue; - handles[handleID].Stop(frameCount); - handles[handleID].DetachSound(); + if (handles[handleID].Exists()) { + handles[handleID].Stop(frameCount); + handles[handleID].DetachSound(); + } } break; } } -- cgit v1.2.3