mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix a followers invalid memory crash (discovered in this branch but likely existed beforehand).
This commit is contained in:
parent
672bf9631d
commit
3ddebabfa9
1 changed files with 5 additions and 2 deletions
|
|
@ -2249,8 +2249,11 @@ void G_PlayerReborn(INT32 player, boolean betweenmaps)
|
||||||
if (!(netgame || multiplayer))
|
if (!(netgame || multiplayer))
|
||||||
pflags |= (players[player].pflags & (PF_GODMODE|PF_NOCLIP));
|
pflags |= (players[player].pflags & (PF_GODMODE|PF_NOCLIP));
|
||||||
|
|
||||||
// Obliterate follower from existence
|
if (!betweenmaps)
|
||||||
P_SetTarget(&players[player].follower, NULL);
|
{
|
||||||
|
// Obliterate follower from existence (if valid memory)
|
||||||
|
P_SetTarget(&players[player].follower, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
memcpy(&respawn, &players[player].respawn, sizeof (respawn));
|
memcpy(&respawn, &players[player].respawn, sizeof (respawn));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue