mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 04:11:18 +00:00
Ensure skin index read from replay file is within numskins before drawing face
This commit is contained in:
parent
e7c16a13b7
commit
19403d2889
1 changed files with 1 additions and 1 deletions
|
@ -5580,7 +5580,7 @@ static void DrawReplayHutReplayInfo(void)
|
|||
}
|
||||
|
||||
// Character face!
|
||||
if (W_CheckNumForName(skins[demolist[dir_on[menudepthleft]].standings[0].skin].facewant) != LUMPERROR)
|
||||
if (demolist[dir_on[menudepthleft]].standings[0].skin < numskins && W_CheckNumForName(skins[demolist[dir_on[menudepthleft]].standings[0].skin].facewant) != LUMPERROR)
|
||||
{
|
||||
patch = facewantprefix[demolist[dir_on[menudepthleft]].standings[0].skin];
|
||||
colormap = R_GetTranslationColormap(
|
||||
|
|
Loading…
Reference in a new issue