Fix inverted condition for building waypoints.

Fixes https://github.com/Khopa/dcs_liberation/issues/548
This commit is contained in:
Dan Albert
2021-01-23 14:09:09 -08:00
parent f10f580f1c
commit bf56091dc7
2 changed files with 2 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ class QPredefinedWaypointSelectionComboBox(QFilteredComboBox):
for cp in self.game.theater.controlpoints:
if (self.include_enemy and not cp.captured) or (self.include_friendly and cp.captured):
for ground_object in cp.ground_objects:
if not ground_object.is_dead and not isinstance(ground_object, BuildingGroundObject):
if not ground_object.is_dead and isinstance(ground_object, BuildingGroundObject):
wpt = FlightWaypoint(
FlightWaypointType.CUSTOM,
ground_object.position.x,