From 14cdd034a8a23312d14f6d0e0ada27d33e88e645 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sat, 3 Dec 2011 18:25:10 +0100 Subject: CGE: Fix an assert in intro --- engines/cge/cge_main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } -- cgit v1.2.3