mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-24 06:00:05 +01:00
(svn r20035) -Fix [FS#3909]: under some circumstances you could get into an infinite loop
This commit is contained in:
parent
b1400ab65e
commit
ed35d62e70
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user