diff --git a/src/gui/sdl_gui.cpp b/src/gui/sdl_gui.cpp index 415e79eebb3..537e526e8b0 100644 --- a/src/gui/sdl_gui.cpp +++ b/src/gui/sdl_gui.cpp @@ -1138,7 +1138,7 @@ class ConfigurationWindow : public GUI::ToplevelWindow { i++; } - const auto finalgridpos = gridfunc(i > 0 ? (i - 1) : 0); + const auto finalgridpos = gridfunc(i - 1); int closerow_y = finalgridpos.second + 12 + gridbtnheight; (closeButton = new GUI::Button(this, 240, closerow_y, "Close", 80))->addActionHandler(this);