From ca301e17455ebc162a0452b0e0eb19d4c9d03224 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Mon, 23 Sep 2024 00:52:21 -0400 Subject: [PATCH] Lua API: ai.get_suitable_keep now returns integers instead of real numbers --- src/ai/lua/core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } }