From a554b886c6fd35891e82f56556a7cb478ac0b9cd Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 8 Jul 2025 14:23:23 +0200 Subject: [PATCH] fix peeindex overflow lelelele thx indev <3 --- src/r_plane.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_plane.cpp b/src/r_plane.cpp index 40a58f165..499e302ac 100644 --- a/src/r_plane.cpp +++ b/src/r_plane.cpp @@ -247,7 +247,7 @@ static void R_MapPlane(drawspandata_t *ds, spandrawfunc_t *localspanfunc, INT32 ds->bgofs = -y; } - pindex = std::min(distance >> LIGHTZSHIFT, MAXLIGHTZ - 1); + pindex = std::min(distance >> LIGHTZSHIFT, MAXLIGHTZ - 1); ds->colormap = ds->planezlight[pindex];