about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-09-23 09:00:45 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-09-23 09:00:45 +0000
commit6874cc5bfa50ae221ddb04b91178cb323ff4a6fa (patch)
treef5dcb39882f595f758c6617040a334c0b3988f35
parentc1dec5683bfe2dbf07e5489bc4e5f7fbe22ad35c (diff)
downloadzcatch-6874cc5bfa50ae221ddb04b91178cb323ff4a6fa.tar.gz
zcatch-6874cc5bfa50ae221ddb04b91178cb323ff4a6fa.zip
fixed clearing of character on spawn
-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;