Fix bug preventing mission generation

This commit is contained in:
Raffson 2023-04-10 00:02:14 +02:00
parent 13c1f429b1
commit 8973100f95
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -150,7 +150,7 @@ class FlotGenerator:
# If the option fc3LaserCode is enabled, force all JTAC
# laser codes to 1113 to allow lasing for Su-25 Frogfoots and A-10A Warthogs.
# Otherwise use 1688 for the first JTAC, 1687 for the second etc.
if self.game.settings.plugins["plugins.ctld.fc3LaserCode"]:
if self.game.settings.plugins.get("ctld.fc3LaserCode"):
code = 1113
else:
code = self.laser_code_registry.get_next_laser_code()