summaryrefslogtreecommitdiff
path: root/src/cutScene.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-04-26 18:33:51 +0200
committerTreeki <treeki@gmail.com>2013-04-26 18:33:51 +0200
commit80901c98337c928fa7f88c34897f227df65f1257 (patch)
tree7b0087410cff46ab2901170c376d2c5228bf396e /src/cutScene.cpp
parent0ea383ed6709be8f4b2942a21483f9e662c50d5b (diff)
downloadkamek-80901c98337c928fa7f88c34897f227df65f1257.tar.gz
kamek-80901c98337c928fa7f88c34897f227df65f1257.zip
don't stop non-existent sound in cutscenes
Diffstat (limited to '')
-rw-r--r--src/cutScene.cpp6
1 files changed, 4 insertions, 2 deletions
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;
}
}