diff --git a/src/ai/lua/core.cpp b/src/ai/lua/core.cpp index 9b08ed86f73..2e3027d1b75 100644 --- a/src/ai/lua/core.cpp +++ b/src/ai/lua/core.cpp @@ -158,8 +158,8 @@ static int cfun_ai_get_suitable_keep(lua_State *L) return 0; } else { - lua_pushnumber(L, res.wml_x()); - lua_pushnumber(L, res.wml_y()); + lua_pushinteger(L, res.wml_x()); + lua_pushinteger(L, res.wml_y()); return 2; } }