mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 01:01:07 +00:00
Fix potential crash when loading saved games.
This commit is contained in:
parent
2c38d5b3e3
commit
a7220b86a7
1 changed files with 1 additions and 0 deletions
|
@ -1435,6 +1435,7 @@ static void Host_Loadgame_f (void)
|
|||
memset (&ent->v, 0, qcvm->progs->entityfields * 4);
|
||||
}
|
||||
else {
|
||||
SV_UnlinkEdict(ent);
|
||||
memset (ent, 0, qcvm->edict_size);
|
||||
ent->baseline = nullentitystate;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue