KYRA: (LOL) - fix possible null ptr dereference in scene_lol.cpp

This commit is contained in:
athrxx 2013-04-17 21:11:55 +02:00
parent d2d2ed1303
commit 9b74a7bd65

View File

@ -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