Crash ScummVM when a widget definition cannot be found in the XML file and show a descriptive error.

svn-id: r34800
This commit is contained in:
Vicent Marti 2008-10-14 17:22:25 +00:00
parent c949eb2dac
commit b3625cae2f

View File

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