Fix repeated JTACs after multiple generations.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1191

(cherry picked from commit 87dd6b19bf7ce516ac6201eee42c553ecff43cdf)
This commit is contained in:
Dan Albert 2021-06-08 20:56:00 -07:00
parent 4a52af298c
commit 798591b980

View File

@ -399,6 +399,7 @@ class Operation:
@classmethod
def _generate_ground_conflicts(cls) -> None:
"""For each frontline in the Operation, generate the ground conflicts and JTACs"""
cls.jtacs = []
for front_line in cls.game.theater.conflicts():
player_cp = front_line.blue_cp
enemy_cp = front_line.red_cp