Skip to content
Browse files

FIx wrong error message on invalid use of the formspec element image_…

  • Loading branch information...
RealBadAngel committed Oct 7, 2013
1 parent afb2732 commit 5598f3c81b0d78237f9c8b44b022e3b7270ef426
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/guiFormSpecMenu.cpp
@@ -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);

0 comments on commit 5598f3c

Please sign in to comment.
You can’t perform that action at this time.