Fix AAA Flak generator using wrong index

- Fixes #1519 as the Opel Blitz unit generator was using the index without incrementing it
This commit is contained in:
RndName
2021-08-08 13:16:39 +02:00
parent 263c1cc012
commit f0476fcbb3
2 changed files with 3 additions and 0 deletions

View File

@@ -81,8 +81,10 @@ class FlakGenerator(AirDefenseGroupGenerator):
)
# Some Opel Blitz trucks
index = 0
for i in range(int(max(1, 2))):
for j in range(int(max(1, 2))):
index += 1
self.add_unit(
Unarmed.Blitz_36_6700A,
"BLITZ#" + str(index),