mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 00:41:12 +00:00
KYRA: (LOL) - fix possible null ptr dereference in scene_lol.cpp
This commit is contained in:
parent
d2d2ed1303
commit
9b74a7bd65
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user