mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
G_AddGhost, G_GetStaffGhostBrief: fix bugged unlockables code
This was causing the following crash:
I_Error(): Ghost is not a record attack ghost DXD (ziptic = 1)
This commit is contained in:
parent
50624546cc
commit
e86ae4b22b
1 changed files with 2 additions and 2 deletions
|
|
@ -3591,7 +3591,7 @@ void G_AddGhost(savebuffer_t *buffer, const char *defdemoname)
|
|||
// Skip unlockables
|
||||
{
|
||||
UINT32 unlockables = READUINT32(p);
|
||||
p += std::min<UINT32>(unlockables, MAXUNLOCKABLES);
|
||||
p += unlockables;
|
||||
}
|
||||
|
||||
p++; // mapmusrng
|
||||
|
|
@ -3814,7 +3814,7 @@ staffbrief_t *G_GetStaffGhostBrief(UINT8 *buffer)
|
|||
// Skip unlockables
|
||||
{
|
||||
UINT32 unlockables = READUINT32(p);
|
||||
p += std::min<UINT32>(unlockables, MAXUNLOCKABLES);
|
||||
p += unlockables;
|
||||
}
|
||||
|
||||
p++; // mapmusrng
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue