mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 10:52:23 +00:00
lib_sStopSoundByID: fixed mixed declaration and code compiler warning
This commit is contained in:
parent
9b25ab27ca
commit
20e4d5ab9e
1 changed files with 1 additions and 2 deletions
|
@ -2461,11 +2461,10 @@ static int lib_sStopSound(lua_State *L)
|
|||
static int lib_sStopSoundByID(lua_State *L)
|
||||
{
|
||||
void *origin = *((mobj_t **)luaL_checkudata(L, 1, META_MOBJ));
|
||||
sfxenum_t sound_id = luaL_checkinteger(L, 2);
|
||||
//NOHUD
|
||||
if (!origin)
|
||||
return LUA_ErrInvalid(L, "mobj_t");
|
||||
|
||||
sfxenum_t sound_id = luaL_checkinteger(L, 2);
|
||||
if (sound_id >= NUMSFX)
|
||||
return luaL_error(L, "sfx %d out of range (0 - %d)", sound_id, NUMSFX-1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue