SCUMM: Add safety check

This commit is contained in:
Eugene Sandulenko 2015-11-28 00:03:49 +01:00
parent b7735b020f
commit deb7623fbf

View File

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