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 515303b8be
commit 0f25eaa271
2 changed files with 8 additions and 1 deletions

View File

@@ -798,6 +798,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();