Skip to content

Commit

Permalink
FIx wrong error message on invalid use of the formspec element image_…
Browse files Browse the repository at this point in the history
…button
  • Loading branch information
RealBadAngel committed Oct 7, 2013
1 parent afb2732 commit 5598f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guiFormSpecMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5598f3c

Please sign in to comment.