mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-27 19:51:09 +00:00
Require valid toucher.player
This commit is contained in:
parent
8afe510034
commit
2647b10840
1 changed files with 2 additions and 0 deletions
|
@ -2204,6 +2204,8 @@ static int lib_pTouchSpecialThing(lua_State *L)
|
|||
INLEVEL
|
||||
if (!special || !toucher)
|
||||
return LUA_ErrInvalid(L, "mobj_t");
|
||||
if (!toucher->player)
|
||||
return luaL_error(L, "P_TouchSpecialThing requires a valid toucher.player.");
|
||||
P_TouchSpecialThing(special, toucher, heightcheck);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue