From efc9145f80082f5a8c29be034dc9e2d8c9897778 Mon Sep 17 00:00:00 2001 From: Carl Date: Tue, 2 Jun 2026 17:33:31 +0200 Subject: [PATCH] Fixed AI validation. --- servermanager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servermanager.py b/servermanager.py index 8080ab2..af9d5f1 100644 --- a/servermanager.py +++ b/servermanager.py @@ -58,7 +58,7 @@ def server_command_builder( tuple[int, int] ] = [], # list of nations that will be ai tuple format: NationID, AI Level (1-6), 0 being closed client_start: bool = True, - teams: list[tuple[int, int, int]] = [], + teams: list[tuple[int, int, int]] = [], # list of teams with format nation id, clustered_start: bool = False, team_game: bool = False, mapfile: str = "", @@ -100,7 +100,7 @@ def server_command_builder( if not (0 < era < 4): return "ERROR_ERA" - ai_indexes = [t[1] for t in ai_slots] + ai_indexes = [t[0] for t in ai_slots] if not (len(ai_indexes) == len(set(ai_indexes))): return "ERROR_AIS"