From 26a76098754effe6f4151ea5fc41b6be2dcae0b9 Mon Sep 17 00:00:00 2001 From: Vasyl Horbachenko Date: Wed, 4 Jul 2018 04:44:58 +0300 Subject: [PATCH] fixed crash on mission debriefing --- game/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/db.py b/game/db.py index 4640471b..708c474a 100644 --- a/game/db.py +++ b/game/db.py @@ -416,7 +416,7 @@ def choose_units(for_task: Task, factor: float, count: int, country: str) -> typ index_start = min(idx, len(suitable_unittypes) - variety) index_end = min(idx + variety, len(suitable_unittypes)) - return set(suitable_unittypes[index_start:index_end]) + return list(set(suitable_unittypes[index_start:index_end])) def _validate_db():