mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-12 21:01:00 +00:00
Merge branch 'replayhut-skin255-crash' into 'master'
Ensure skin index read from replay file is within numskins before drawing face See merge request KartKrew/Kart-Public!319
This commit is contained in:
commit
1b884dd8f2
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