From e858ed13109f3e2bf875c098a4c6e475402db022 Mon Sep 17 00:00:00 2001 From: Alfred Eriksson Date: Sat, 18 Oct 2008 10:32:36 +0000 Subject: gameclient is now reset correctly --- src/game/client/gameclient.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/game/client/gameclient.cpp') diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index 4ac9c50a..a0c83366 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -430,12 +430,8 @@ void GAMECLIENT::on_message(int msgtype) void GAMECLIENT::on_statechange(int new_state, int old_state) { - // clear out the invalid pointers - mem_zero(&gameclient.snap, sizeof(gameclient.snap)); - - // first issue a reset to all - for(int i = 0; i < all.num; i++) - all.components[i]->on_reset(); + // reset everything + on_reset(); // then change the state for(int i = 0; i < all.num; i++) -- cgit 1.4.1