fix: unsigned char overflow

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2026-01-19 00:58:47 -05:00
parent ecfab26fdf
commit b416a517e4
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

View File

@ -234,8 +234,8 @@ STlib_updateMultIcon
V_CopyRect(x, y-ST_Y, BG, w, h, x, y, FG); V_CopyRect(x, y-ST_Y, BG, w, h, x, y, FG);
} }
V_DrawPatch(mi->x, mi->y, FG, mi->p[*mi->inum]); V_DrawPatch(mi->x, mi->y, FG, mi->p[(unsigned char)*mi->inum]);
mi->oldinum = *mi->inum; mi->oldinum = (unsigned char)*mi->inum;
} }
} }