fix peeindex overflow

lelelele thx indev <3
This commit is contained in:
Alug committed 2025-07-08 14:23:34 +02:00
1 parent f2d68b075c
commit a554b886c6
1 file changed
+1 -1
+1 -1
View File
@@ -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<size_t>(distance >> LIGHTZSHIFT, MAXLIGHTZ - 1);
ds->colormap = ds->planezlight[pindex];