mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-24 02:01:17 +00:00
actually check the right type in lua
This commit is contained in:
parent
1b14dff0e9
commit
47e981d2a8
1 changed files with 2 additions and 2 deletions
|
@ -2834,7 +2834,7 @@ static int lib_rTextureNumForName(lua_State *L)
|
||||||
|
|
||||||
static int lib_rCheckTextureNameForNum(lua_State *L)
|
static int lib_rCheckTextureNameForNum(lua_State *L)
|
||||||
{
|
{
|
||||||
INT32 num = luaL_checkstring(L, 1);
|
INT32 num = (INT32)luaL_checkinteger(L, 1);
|
||||||
//HUDSAFE
|
//HUDSAFE
|
||||||
lua_pushstring(L, R_CheckTextureNameForNum(num));
|
lua_pushstring(L, R_CheckTextureNameForNum(num));
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -2842,7 +2842,7 @@ static int lib_rCheckTextureNameForNum(lua_State *L)
|
||||||
|
|
||||||
static int lib_rTextureNameForNum(lua_State *L)
|
static int lib_rTextureNameForNum(lua_State *L)
|
||||||
{
|
{
|
||||||
INT32 num = luaL_checkstring(L, 1);
|
INT32 num = (INT32)luaL_checkinteger(L, 1);
|
||||||
//HUDSAFE
|
//HUDSAFE
|
||||||
lua_pushstring(L, R_TextureNameForNum(num));
|
lua_pushstring(L, R_TextureNameForNum(num));
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue