mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 02:44:56 +00:00
Fixed potential crash in drawDialogueMessage(): The function should terminate
if, for some reason, messagePtr is NULL. svn-id: r21833
This commit is contained in:
parent
19a1cdfe85
commit
f5ab0e5578
@ -2384,6 +2384,7 @@ void drawDialogueMessage(byte msgIdx, int16 x, int16 y, int16 width, int16 color
|
||||
|
||||
if (!messagePtr) {
|
||||
freeOverlay(msgIdx, 2);
|
||||
return;
|
||||
}
|
||||
|
||||
var20 += strlen(messagePtr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user