mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-20 13:09:15 +00:00
(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.
This commit is contained in:
@@ -619,6 +619,8 @@ static void NetworkClose()
|
|||||||
_networking = false;
|
_networking = false;
|
||||||
_network_server = false;
|
_network_server = false;
|
||||||
|
|
||||||
|
NetworkFreeLocalCommandQueue();
|
||||||
|
|
||||||
free(_network_company_states);
|
free(_network_company_states);
|
||||||
_network_company_states = NULL;
|
_network_company_states = NULL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user