mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
G_LoadDemoSkins: Actually pass the skin name to R_SkinAvailableEx, idiot
Fixes the reported Emerl issue
This commit is contained in:
parent
9b9c2cbcb6
commit
96a6fe85f1
1 changed files with 1 additions and 4 deletions
|
|
@ -2033,7 +2033,6 @@ static void G_SaveDemoSkins(UINT8 **pp)
|
|||
|
||||
static democharlist_t *G_LoadDemoSkins(savebuffer_t *info, UINT8 *worknumskins, boolean getclosest)
|
||||
{
|
||||
char skin[17];
|
||||
UINT8 i, byte, shif;
|
||||
democharlist_t *skinlist = NULL;
|
||||
|
||||
|
|
@ -2052,8 +2051,6 @@ static democharlist_t *G_LoadDemoSkins(savebuffer_t *info, UINT8 *worknumskins,
|
|||
I_Error("G_LoadDemoSkins: Insufficient memory to allocate list");
|
||||
}
|
||||
|
||||
skin[16] = '\0';
|
||||
|
||||
for (i = 0; i < (*worknumskins); i++)
|
||||
{
|
||||
INT32 result = -1;
|
||||
|
|
@ -2071,7 +2068,7 @@ static democharlist_t *G_LoadDemoSkins(savebuffer_t *info, UINT8 *worknumskins,
|
|||
skinlist[i].kartweight = READUINT8(info->p);
|
||||
skinlist[i].flags = READUINT32(info->p);
|
||||
|
||||
result = R_SkinAvailableEx(skin, false);
|
||||
result = R_SkinAvailableEx(skinlist[i].name, false);
|
||||
if (result == -1)
|
||||
{
|
||||
if (!getclosest)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue