diff --git a/src/lua/LuaWindow.cpp b/src/lua/LuaWindow.cpp index 3f15ea8f8..e390ffb92 100644 --- a/src/lua/LuaWindow.cpp +++ b/src/lua/LuaWindow.cpp @@ -61,9 +61,9 @@ LuaWindow::LuaWindow(lua_State * l) : int sizeY = luaL_optinteger(l, 4, 10); // We should replace this with errors - if (posX < 1) + if (posX < 1 && posX != -1) posX = 1; - if (posY < 1) + if (posY < 1 && posY != -1) posY = 1; if (sizeX < 10) sizeX = 10;