Ticket #5624: patch-engines_scumm_script_cpp
File patch-engines_scumm_script_cpp, 386 bytes (added by , 14 years ago) |
---|
Line | |
---|---|
1 | $OpenBSD$ |
2 | --- engines/scumm/script.cpp.orig Tue Nov 2 09:05:19 2010 |
3 | +++ engines/scumm/script.cpp Wed Mar 30 20:50:30 2011 |
4 | @@ -1313,6 +1313,8 @@ void ScummEngine::endCutscene() { |
5 | |
6 | vm.cutSceneScript[vm.cutSceneStackPointer] = 0; |
7 | vm.cutScenePtr[vm.cutSceneStackPointer] = 0; |
8 | + |
9 | + assert(0 < vm.cutSceneStackPointer); |
10 | vm.cutSceneStackPointer--; |
11 | |
12 | if (VAR(VAR_CUTSCENE_END_SCRIPT)) |