0
0
Fork 0
mirror of https://github.com/ZDoom/raze-gles.git synced 2025-04-26 17:00:55 +00:00

Prevent OOB issues in old pushmove

This commit is contained in:
nukeykt 2020-01-26 22:26:08 +09:00 committed by Christoph Oelckers
parent dc9b37c847
commit 5db1f95b29

View file

@ -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;