From b3625cae2fa2cc74ab69adcd29bfe7f3ede4b19b Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Tue, 14 Oct 2008 17:22:25 +0000 Subject: [PATCH] Crash ScummVM when a widget definition cannot be found in the XML file and show a descriptive error. svn-id: r34800 --- gui/newgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/newgui.cpp b/gui/newgui.cpp index 6d3957560fd..e7e5fcf785c 100644 --- a/gui/newgui.cpp +++ b/gui/newgui.cpp @@ -57,7 +57,7 @@ enum { void GuiObject::reflowLayout() { if (!_name.empty()) { if (!g_gui.xmlEval()->getWidgetData(_name, _x, _y, _w, _h)) { - warning("Could not load widget position for '%s'", _name.c_str()); + error("Could not load widget position for '%s'", _name.c_str()); } if (_x < 0)