diff --git a/src/network/network_command.cpp b/src/network/network_command.cpp index 6cf96c9f58..7ba26041cc 100644 --- a/src/network/network_command.cpp +++ b/src/network/network_command.cpp @@ -235,7 +235,7 @@ void NetworkFreeLocalCommandQueue() * @param cp The command that has to be distributed. * @param owner The client that owns the command, */ -static void DistributeCommandPacket(CommandPacket cp, const NetworkClientSocket *owner) +static void DistributeCommandPacket(CommandPacket &cp, const NetworkClientSocket *owner) { CommandCallback *callback = cp.callback; cp.frame = _frame_counter_max + 1;