diff options
| -rw-r--r-- | src/game/client/gameclient.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
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++) |