diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/server/entities/character.cpp | 2 |
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; |