1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 10:29:10 +00:00

Fix: crash to desktop when attempting to join a company while not joined (yet)

This commit is contained in:
Rubidium
2024-03-22 19:50:27 +01:00
committed by rubidium42
parent 2cc5f35871
commit 5212229f94
2 changed files with 8 additions and 1 deletions

View File

@@ -746,6 +746,7 @@ public:
Debug(net, 9, "Client::OnConnect(): connection_string={}", this->connection_string);
_networking = true;
_network_own_client_id = ClientID{};
new ClientNetworkGameSocketHandler(s, this->connection_string);
IConsoleCmdExec("exec scripts/on_client.scr 0");
NetworkClient_Connected();