- removed player_t destructor call in CopyPlayer.

This commit is contained in:
Christoph Oelckers 2013-07-23 12:31:44 +02:00
parent f3d8790995
commit 181181a865

View file

@ -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;