From 9b74a7bd65668a75db75ef36fb10976d49fde02d Mon Sep 17 00:00:00 2001 From: athrxx Date: Wed, 17 Apr 2013 21:11:55 +0200 Subject: KYRA: (LOL) - fix possible null ptr dereference in scene_lol.cpp --- engines/kyra/scene_lol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/kyra/scene_lol.cpp b/engines/kyra/scene_lol.cpp index f1045d2ddf..c8618bc3bb 100644 --- a/engines/kyra/scene_lol.cpp +++ b/engines/kyra/scene_lol.cpp @@ -315,7 +315,7 @@ void LoLEngine::loadLevelGraphics(const char *file, int specialColor, int weight if (_lastSpecialColor == 1) _lastSpecialColor = 0x44; else if (_lastSpecialColor == 0x66) - _lastSpecialColor = scumm_stricmp(file, "YVEL2") ? 0xCC : 0x44; + _lastSpecialColor = file ? (scumm_stricmp(file, "YVEL2") ? 0xCC : 0x44) : 0x44; else if (_lastSpecialColor == 0x6B) _lastSpecialColor = 0xCC; else -- cgit v1.2.3