diff options
author | Treeki <treeki@gmail.com> | 2013-04-26 18:33:51 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-04-26 18:33:51 +0200 |
commit | 80901c98337c928fa7f88c34897f227df65f1257 (patch) | |
tree | 7b0087410cff46ab2901170c376d2c5228bf396e /src | |
parent | 0ea383ed6709be8f4b2942a21483f9e662c50d5b (diff) | |
download | kamek-80901c98337c928fa7f88c34897f227df65f1257.tar.gz kamek-80901c98337c928fa7f88c34897f227df65f1257.zip |
don't stop non-existent sound in cutscenes
Diffstat (limited to '')
-rw-r--r-- | src/cutScene.cpp | 6 |
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; } } |