From bfb3f743428f18c3c330f7872a7e59d267da80a4 Mon Sep 17 00:00:00 2001 From: Carl Date: Tue, 2 Jun 2026 17:29:39 +0200 Subject: [PATCH] No comment. We do not speak of this. --- webui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webui.py b/webui.py index 24c5f4a..e50e464 100644 --- a/webui.py +++ b/webui.py @@ -163,9 +163,9 @@ def set_ai_level(value, nid, ai_slots): "Master": 5, "Impossible": 6, } - ai_slots[:] = [ - (nation_id, ai_level) for nation_id, ai_level in ai_slots if nation_id != nid - ] + for ai in ai_slots: + if ai[0] == nid: + ai_slots.remove(ai) if value == "Human": return