mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-23 01:30:58 +00:00
Fix linedef type 319/320 again
This commit is contained in:
parent
99f0933986
commit
d9937953ad
1 changed files with 1 additions and 1 deletions
|
@ -1808,7 +1808,7 @@ boolean P_RunTriggerLinedef(line_t *triggerline, mobj_t *actor, sector_t *caller
|
|||
{ // An unlockable itself must be unlocked!
|
||||
INT32 unlockid = triggerline->args[1];
|
||||
|
||||
if (unlockid < 0 || unlockid >= MAXUNLOCKABLES) // limited by unlockable count
|
||||
if (unlockid <= 0 || unlockid > MAXUNLOCKABLES) // limited by unlockable count
|
||||
{
|
||||
CONS_Debug(DBG_GAMELOGIC, "Unlockable check (sidedef %hu): bad unlockable ID %d\n", triggerline->sidenum[0], unlockid);
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue