diff options
Diffstat (limited to 'src/network/network_client.cpp')
-rw-r--r-- | src/network/network_client.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp index a764a0410..ea478276b 100644 --- a/src/network/network_client.cpp +++ b/src/network/network_client.cpp @@ -742,16 +742,13 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_COMMAND) const char *err = MY_CLIENT->Recv_Command(p, &cp); cp.frame = p->Recv_uint32(); cp.my_cmd = p->Recv_bool(); - cp.next = NULL; if (err != NULL) { IConsolePrintF(CC_ERROR, "WARNING: %s from server, dropping...", err); return NETWORK_RECV_STATUS_MALFORMED_PACKET; } - /* The server did send us this command.. - * queue it in our own queue, so we can handle it in the upcoming frame! */ - NetworkAddCommandQueue(cp); + MY_CLIENT->incoming_queue.Append(&cp); return NETWORK_RECV_STATUS_OKAY; } |