diff options
author | rubidium <rubidium@openttd.org> | 2009-02-20 00:03:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-20 00:03:29 +0000 |
commit | e3ac127617f4bc4024d64cd192ab84e1174500eb (patch) | |
tree | 34cc68c7c087091042f3c7d1ce3321a95fdd2ae1 | |
parent | 5223212624a01a5cc8f60931e40142377968daf4 (diff) | |
download | openttd-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.cpp | 2 |
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; |