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 91daabc9d2
commit b31c09c4ff
2 changed files with 3 additions and 0 deletions

View File

@@ -82,8 +82,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),