mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +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)
|
static democharlist_t *G_LoadDemoSkins(savebuffer_t *info, UINT8 *worknumskins, boolean getclosest)
|
||||||
{
|
{
|
||||||
char skin[17];
|
|
||||||
UINT8 i, byte, shif;
|
UINT8 i, byte, shif;
|
||||||
democharlist_t *skinlist = NULL;
|
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");
|
I_Error("G_LoadDemoSkins: Insufficient memory to allocate list");
|
||||||
}
|
}
|
||||||
|
|
||||||
skin[16] = '\0';
|
|
||||||
|
|
||||||
for (i = 0; i < (*worknumskins); i++)
|
for (i = 0; i < (*worknumskins); i++)
|
||||||
{
|
{
|
||||||
INT32 result = -1;
|
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].kartweight = READUINT8(info->p);
|
||||||
skinlist[i].flags = READUINT32(info->p);
|
skinlist[i].flags = READUINT32(info->p);
|
||||||
|
|
||||||
result = R_SkinAvailableEx(skin, false);
|
result = R_SkinAvailableEx(skinlist[i].name, false);
|
||||||
if (result == -1)
|
if (result == -1)
|
||||||
{
|
{
|
||||||
if (!getclosest)
|
if (!getclosest)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue