mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-18 15:32:10 +00:00
whoopsie doodle, forgot gh wasn't allocated until after this section
This commit is contained in:
parent
d119c711e5
commit
f8229b9dad
1 changed files with 3 additions and 3 deletions
|
@ -6018,6 +6018,7 @@ void G_AddGhost(char *defdemoname)
|
||||||
UINT8 *buffer,*p;
|
UINT8 *buffer,*p;
|
||||||
mapthing_t *mthing;
|
mapthing_t *mthing;
|
||||||
UINT16 count, ghostversion;
|
UINT16 count, ghostversion;
|
||||||
|
skin_t *ghskin = &skins[0];
|
||||||
|
|
||||||
name[16] = '\0';
|
name[16] = '\0';
|
||||||
skin[16] = '\0';
|
skin[16] = '\0';
|
||||||
|
@ -6163,11 +6164,10 @@ void G_AddGhost(char *defdemoname)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
gh->oldmo.skin = &skins[0];
|
|
||||||
for (i = 0; i < numskins; i++)
|
for (i = 0; i < numskins; i++)
|
||||||
if (!stricmp(skins[i].name,skin))
|
if (!stricmp(skins[i].name,skin))
|
||||||
{
|
{
|
||||||
gh->oldmo.skin = &skins[i];
|
ghskin = &skins[i];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6224,7 +6224,7 @@ void G_AddGhost(char *defdemoname)
|
||||||
gh->oldmo.z = gh->mo->z;
|
gh->oldmo.z = gh->mo->z;
|
||||||
|
|
||||||
// Set skin
|
// Set skin
|
||||||
gh->mo->skin = gh->oldmo.skin;
|
gh->mo->skin = gh->oldmo.skin = ghskin;
|
||||||
|
|
||||||
// Set color
|
// Set color
|
||||||
gh->mo->color = ((skin_t*)gh->mo->skin)->prefcolor;
|
gh->mo->color = ((skin_t*)gh->mo->skin)->prefcolor;
|
||||||
|
|
Loading…
Reference in a new issue