mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
- removed player_t destructor call in CopyPlayer.
This commit is contained in:
parent
f3d8790995
commit
181181a865
1 changed files with 0 additions and 1 deletions
|
@ -267,7 +267,6 @@ static void CopyPlayer (player_t *dst, player_t *src, const char *name)
|
|||
bool usedown = dst->usedown;
|
||||
|
||||
|
||||
dst->~player_t(); // ensure that the userinfo in dst does not contain anything before copying everything over.
|
||||
*dst = *src; // To avoid memory leaks at this point the userinfo in src must be empty which is taken care of by the TransferFrom call above.
|
||||
|
||||
dst->cheats |= chasecam;
|
||||
|
|
Loading…
Reference in a new issue