FIx wrong error message on invalid use of the formspec element image_button
authorRealBadAngel <mk@realbadangel.pl>
Mon, 7 Oct 2013 20:47:13 +0000 (22:47 +0200)
committerRealBadAngel <mk@realbadangel.pl>
Mon, 7 Oct 2013 20:50:26 +0000 (22:50 +0200)
src/guiFormSpecMenu.cpp

index 28cb6740e3d8a2dee8ff44252cb3bb19d2062e98..25adf8ea7d5e6abc390c6d372b0a189b9d889225 100644 (file)
@@ -1144,7 +1144,7 @@ void GUIFormSpecMenu::parseImageButton(parserData* data,std::string element,std:
                core::rect<s32> rect = core::rect<s32>(pos.X, pos.Y, pos.X+geom.X, pos.Y+geom.Y);
 
                if(data->bp_set != 2)
-                       errorstream<<"WARNING: invalid use of item_image_button without a size[] element"<<std::endl;
+                       errorstream<<"WARNING: invalid use of image_button without a size[] element"<<std::endl;
 
                image_name = unescape_string(image_name);
                pressed_image_name = unescape_string(pressed_image_name);