From 47e038c9fac61f0d04924dc1f2ea19b52de89c46 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Sun, 20 Jun 2021 23:46:06 -0700 Subject: [PATCH] Fix command line campaign generator. --- qt_ui/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qt_ui/main.py b/qt_ui/main.py index 64051a36..744f90de 100644 --- a/qt_ui/main.py +++ b/qt_ui/main.py @@ -18,6 +18,7 @@ from game.data.weapons import ( WEAPON_INTRODUCTION_YEARS, Weapon, ) +from game.db import FACTIONS from game.profiling import logged_duration from game.settings import Settings from game.theater.start_generator import GameGenerator, GeneratorSettings, ModSettings @@ -199,8 +200,8 @@ def create_game( inject_custom_payloads(Path(persistency.base_path())) campaign = Campaign.from_json(campaign_path) generator = GameGenerator( - blue, - red, + FACTIONS[blue], + FACTIONS[red], campaign.load_theater(), Settings( supercarrier=supercarrier,