Fix wesnoth.random returning a real number when called with arguments
This commit is contained in:
parent
40ff503470
commit
0b4297b0f8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue