aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2011-12-03 18:25:10 +0100
committerStrangerke2011-12-03 18:25:10 +0100
commit14cdd034a8a23312d14f6d0e0ada27d33e88e645 (patch)
tree6d055dd09d73b6eff4af2ec0e106eafb38c0920d
parentfb855cfdfce9253081f06e660bd32e8e02c0ceb0 (diff)
downloadscummvm-rg350-14cdd034a8a23312d14f6d0e0ada27d33e88e645.tar.gz
scummvm-rg350-14cdd034a8a23312d14f6d0e0ada27d33e88e645.tar.bz2
scummvm-rg350-14cdd034a8a23312d14f6d0e0ada27d33e88e645.zip
CGE: Fix an assert in intro
-rw-r--r--engines/cge/cge_main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/cge/cge_main.cpp b/engines/cge/cge_main.cpp
index bd294716e2..c8ff1ee001 100644
--- a/engines/cge/cge_main.cpp
+++ b/engines/cge/cge_main.cpp
@@ -688,7 +688,8 @@ void CGEEngine::xScene() {
debugC(6, kCGEDebugEngine, "CGEEngine::xScene()");
sceneDown();
- _commandHandler->addCommand(kCmdLevel, -1, _lev, &_sceneLight);
+ if (_lev != -1)
+ _commandHandler->addCommand(kCmdLevel, -1, _lev, &_sceneLight);
sceneUp();
}