From deb7623fbff4b4d7c993facc4bec43a7509b6da4 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 28 Nov 2015 00:03:49 +0100 Subject: SCUMM: Add safety check --- engines/scumm/dialogs.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines/scumm/dialogs.cpp') diff --git a/engines/scumm/dialogs.cpp b/engines/scumm/dialogs.cpp index c22525b6f2..21c7428621 100644 --- a/engines/scumm/dialogs.cpp +++ b/engines/scumm/dialogs.cpp @@ -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 -- cgit v1.2.3