summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-09-14 11:34:09 +0000
committerrubidium <rubidium@openttd.org>2013-09-14 11:34:09 +0000
commit7adc4534733120527b9c4e2b9c3841deb4b99b96 (patch)
treebf9a3485d562660520c4556b50062cdaf695541b /src/network
parent541fe1775afe65b69d1829361f809e4d08a12957 (diff)
downloadopenttd-7adc4534733120527b9c4e2b9c3841deb4b99b96.tar.xz
(svn r25770) -Fix [Admin]: the frame of a command packet wasn't set for the packets that were sent via de admin interface
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_command.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_command.cpp b/src/network/network_command.cpp
index 6cf96c9f5..7ba26041c 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;