doom: exit with a proper VPO in R_CheckPlane()
Fixes #48, thanks @mfrancis95 and @AXDOOMER
This commit is contained in:
parent
847770da1e
commit
fbb2fa82c5
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue