From 6874cc5bfa50ae221ddb04b91178cb323ff4a6fa Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Tue, 23 Sep 2008 09:00:45 +0000 Subject: fixed clearing of character on spawn --- src/game/server/entities/character.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/game/server') 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; -- cgit 1.4.1