Lua API: ai.get_suitable_keep now returns integers instead of real numbers

This commit is contained in:
Celtic Minstrel 2024-09-23 00:52:21 -04:00
parent 40625ab26f
commit ca301e1745

View file

@ -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;
}
}