mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
Prevent OOB issues in old pushmove
This commit is contained in:
parent
dc9b37c847
commit
5db1f95b29
1 changed files with 2 additions and 0 deletions
|
@ -1562,6 +1562,8 @@ int pushmove(vec3_t *const vect, int16_t *const sectnum,
|
|||
|
||||
if (clear)
|
||||
{
|
||||
if (enginecompatibility_mode != ENGINECOMPATIBILITY_NONE && *sectnum < 0)
|
||||
return 0;
|
||||
clipsectorlist[0] = *sectnum;
|
||||
clipsectnum = 1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue