We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aebbcbf commit 07f444eCopy full SHA for 07f444e
src/guiFormSpecMenu.cpp
@@ -621,8 +621,8 @@ void GUIFormSpecMenu::parseItemImage(parserData* data,std::string element)
621
pos.Y += stof(v_pos[1]) * (float) spacing.Y;
622
623
v2s32 geom;
624
- geom.X = stoi(v_geom[0]) * (float)imgsize.X;
625
- geom.Y = stoi(v_geom[1]) * (float)imgsize.Y;
+ geom.X = stof(v_geom[0]) * (float)imgsize.X;
+ geom.Y = stof(v_geom[1]) * (float)imgsize.Y;
626
627
if(data->bp_set != 2)
628
errorstream<<"WARNING: invalid use of item_image without a size[] element"<<std::endl;
0 commit comments