about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/server/entities/character.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/server/entities/character.cpp b/src/game/server/entities/character.cpp
index 2a749275..98bfa862 100644
--- a/src/game/server/entities/character.cpp
+++ b/src/game/server/entities/character.cpp
@@ -44,6 +44,8 @@ void CHARACTER::reset()
 
 bool CHARACTER::spawn(PLAYER *player, vec2 pos, int team)
 {
+	mem_zero(this, sizeof(CHARACTER));
+	new(this) CHARACTER();
 	player_state = PLAYERSTATE_UNKNOWN;
 	emote_stop = -1;
 	last_action = -1;