Avoid incompatible mix of SR/TR/LN units

The call to 'add_or_update_force_group' would end up merging the force-groups, which in turn could cause SAM sites to have an SA-2 SR & TR with SA-6 launchers...
This commit is contained in:
Raffson 2024-01-20 22:28:32 +01:00
parent febc901518
commit 9ab8e15dd1
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -332,9 +332,8 @@ class AirbaseGroundObjectGenerator(ControlPointGroundObjectGenerator):
if g.unit_class in ug.unit_classes:
fg.units.append(g)
unit_group: Optional[ForceGroup] = fg
self.armed_forces.add_or_update_force_group(fg)
else:
if fg and not valid_fg:
if fg:
logging.warning(
f"Override in ground_forces failed for {fg} at {position.original_name}"
)