Fix wesnoth.random returning a real number when called with arguments

This commit is contained in:
Celtic Minstrel 2021-02-20 14:27:35 -05:00
parent 40ff503470
commit 0b4297b0f8

View file

@ -271,7 +271,7 @@ namespace lua_check_impl
std::enable_if_t<std::is_integral_v<T> && !std::is_same_v<T, bool>, void>
lua_push(lua_State *L, T val)
{
lua_pushnumber(L, val);
lua_pushinteger(L, val);
}
//std::pair