fix peeindex overflow
lelelele thx indev <3
This commit is contained in:
1 parent
f2d68b075c
commit
a554b886c6
1 file changed
+1
-1
+1
-1
@@ -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];
|
||||
|
||||
|
||||
Reference in new issue
Block a user