Skip to content

Commit

Permalink
fix(client-registry): remove temp net id from m_clientsByNetId when '…
Browse files Browse the repository at this point in the history
…joining'
  • Loading branch information
AvarianKnight committed Jul 11, 2023
1 parent f2c6ed5 commit 3800625
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/components/citizen-server-impl/src/ClientRegistry.cpp
Expand Up @@ -223,6 +223,7 @@ namespace fx
events->TriggerClientEvent("onPlayerJoining", target, client->GetNetId(), client->GetName(), bigModeSlot);
}

m_clientsByNetId[oldNetID].reset();
// trigger connection handlers
OnConnectedClient(client.get());
}
Expand Down

0 comments on commit 3800625

Please sign in to comment.