doom: exit with a proper VPO in R_CheckPlane()

Fixes #48, thanks @mfrancis95 and @AXDOOMER
This commit is contained in:
Fabian Greffrath 2018-11-21 16:25:32 +01:00
parent 847770da1e
commit fbb2fa82c5

View file

@ -307,6 +307,9 @@ R_CheckPlane
lastvisplane->picnum = pl->picnum;
lastvisplane->lightlevel = pl->lightlevel;
if (lastvisplane - visplanes == MAXVISPLANES)
I_Error ("R_CheckPlane: no more visplanes");
pl = lastvisplane++;
pl->minx = start;
pl->maxx = stop;