diff options
author | Strangerke | 2011-12-03 18:25:10 +0100 |
---|---|---|
committer | Strangerke | 2011-12-03 18:25:10 +0100 |
commit | 14cdd034a8a23312d14f6d0e0ada27d33e88e645 (patch) | |
tree | 6d055dd09d73b6eff4af2ec0e106eafb38c0920d | |
parent | fb855cfdfce9253081f06e660bd32e8e02c0ceb0 (diff) | |
download | scummvm-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.cpp | 3 |
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(); } |