ref: fbb2fa82c536671ce3d6518dabc8a5f6601dc612
parent: 847770da1ec8d22a32f85f2af25ad3b0c34d9236
author: Fabian Greffrath <fabian@greffrath.com>
date: Wed Nov 21 11:25:32 EST 2018
doom: exit with a proper VPO in R_CheckPlane() Fixes #48, thanks @mfrancis95 and @AXDOOMER
--- a/src/doom/r_plane.c
+++ b/src/doom/r_plane.c
@@ -307,6 +307,9 @@
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;