Skip to content

Commit

Permalink
fix: actually allow MAX_SERVERS_PER_GAME
Browse files Browse the repository at this point in the history
  • Loading branch information
diamante0018 committed May 4, 2024
1 parent f2dd8d5 commit d48736c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/elimination_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void elimination_handler::run_frame()
}

++server_count[server.game][context.get_address().to_string(false)];
if (server_count[server.game][context.get_address().to_string(false)] >= MAX_SERVERS_PER_GAME)
if (server_count[server.game][context.get_address().to_string(false)] > MAX_SERVERS_PER_GAME)
{
console::log("Removing server '%s' because it exceeds MAX_SERVERS_PER_GAME", context.get_address().to_string().data());
context.remove();
Expand Down

0 comments on commit d48736c

Please sign in to comment.