summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-06-29 21:15:40 +0000
committerrubidium <rubidium@openttd.org>2010-06-29 21:15:40 +0000
commited35d62e70367df2b0da59922e3fee230fdffe3f (patch)
tree1eaba6e1b2d497f5ae45dc816b00ba7db7b6ddad /src
parentb1400ab65e2e2a353b002c7dcee0488251d56e5d (diff)
downloadopenttd-ed35d62e70367df2b0da59922e3fee230fdffe3f.tar.xz
(svn r20035) -Fix [FS#3909]: under some circumstances you could get into an infinite loop
Diffstat (limited to 'src')
-rw-r--r--src/network/network_command.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/network_command.cpp b/src/network/network_command.cpp
index 2869d8b8b..5e0ca4323 100644
--- a/src/network/network_command.cpp
+++ b/src/network/network_command.cpp
@@ -144,6 +144,7 @@ void NetworkSyncCommandQueue(NetworkClientSocket *cs)
for (CommandPacket *p = _local_command_queue; p != NULL; p = p->next) {
CommandPacket c = *p;
c.callback = 0;
+ c.next = NULL;
NetworkAddCommandQueue(c, cs);
}
}