summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-02-20 00:03:29 +0000
committerrubidium <rubidium@openttd.org>2009-02-20 00:03:29 +0000
commitc5677da94d4851d2b5303d5ae80c5345c7f80d16 (patch)
tree34cc68c7c087091042f3c7d1ce3321a95fdd2ae1 /src
parentef67e591452175ab48c760f14ab05a1bfd00082f (diff)
downloadopenttd-c5677da94d4851d2b5303d5ae80c5345c7f80d16.tar.xz
(svn r15529) -Fix [FS#2644]: the local command queue didn't get properly cleaned when leaving a game meaning you could end up executing commands of the previous network game.
Diffstat (limited to 'src')
-rw-r--r--src/network/network.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index 02121b347..9cd974aa2 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -619,6 +619,8 @@ static void NetworkClose()
_networking = false;
_network_server = false;
+ NetworkFreeLocalCommandQueue();
+
free(_network_company_states);
_network_company_states = NULL;