mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Check if skin number is postive before setting replay skin colormaps
Fixes #200.
This commit is contained in:
parent
161d375532
commit
6185771f0c
1 changed files with 1 additions and 1 deletions
|
|
@ -1045,7 +1045,7 @@ static int libd_getColormap(lua_State *L)
|
||||||
skinnum = i;
|
skinnum = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (demo.playback)
|
if (demo.playback && skinnum >= 0)
|
||||||
skinnum = demo.skinlist[skinnum].mapping;
|
skinnum = demo.skinlist[skinnum].mapping;
|
||||||
|
|
||||||
// all was successful above, now we generate the colormap at last!
|
// all was successful above, now we generate the colormap at last!
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue