mirror of
https://github.com/minetest/minetest.git
synced 2024-12-28 08:57:30 +01:00
FIx wrong error message on invalid use of the formspec element image_button
This commit is contained in:
parent
afb27329fc
commit
5598f3c81b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user