mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 16:13:28 +00:00
Fixup 13cacd1 (use luaL_checkinteger over luaL_checknumber)
This commit is contained in:
parent
40da35d8de
commit
7c49995981
@ -453,9 +453,9 @@ static int impl_unit_set(lua_State *L)
|
||||
map_location dst = src;
|
||||
|
||||
if(is_key_x) {
|
||||
dst.set_wml_x(static_cast<int>(luaL_checknumber(L, 3)));
|
||||
dst.set_wml_x(static_cast<int>(luaL_checkinteger(L, 3)));
|
||||
} else {
|
||||
dst.set_wml_y(static_cast<int>(luaL_checknumber(L, 3)));
|
||||
dst.set_wml_y(static_cast<int>(luaL_checkinteger(L, 3)));
|
||||
}
|
||||
|
||||
// TODO: could probably be relegated to a helper function.
|
||||
|
Loading…
x
Reference in New Issue
Block a user