summaryrefslogtreecommitdiff
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
commite3ac127617f4bc4024d64cd192ab84e1174500eb (patch)
tree34cc68c7c087091042f3c7d1ce3321a95fdd2ae1
parent5223212624a01a5cc8f60931e40142377968daf4 (diff)
downloadopenttd-e3ac127617f4bc4024d64cd192ab84e1174500eb.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.
-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;