mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-20 19:21:46 +00:00
SCUMM: Add safety check
This commit is contained in:
parent
b7735b020f
commit
deb7623fbf
@ -308,6 +308,8 @@ void HelpDialog::reflowLayout() {
|
||||
int16 x, y;
|
||||
uint16 w, h;
|
||||
|
||||
assert(lineHeight);
|
||||
|
||||
g_gui.xmlEval()->getWidgetData("ScummHelp.HelpText", x, y, w, h);
|
||||
|
||||
// Make sure than we don't have more lines than what we can fit
|
||||
|
Loading…
x
Reference in New Issue
Block a user