fix some missing client ID bounds checks

This commit is contained in:
Martin Michelsen
2023-11-14 20:02:53 -08:00
parent 126e5944f4
commit c5605c8685
3 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -1139,7 +1139,7 @@ static bool add_next_game_client(shared_ptr<Lobby> l) {
return false;
}
if (l->clients[target_client_id] != nullptr) {
if (l->clients.at(target_client_id) != nullptr) {
throw logic_error("client id is already in use");
}