diff --git a/changelog.md b/changelog.md index eb19a474..83cd6b34 100644 --- a/changelog.md +++ b/changelog.md @@ -48,6 +48,7 @@ Saves from 2.3 are not compatible with 2.4. * **[Units]** Pyotr Velikiy cruiser has been removed for now as it's nearly unkillable. * **[Units]** Submarines have been removed for now as they aren't wholly functional. * **[Units]** Fixed "FACTION ERROR : Unable to find OliverHazardPerryGroupGenerator in pydcs" error at startup. +* **[Flight Planner]** Fixed not being able to create custom waypoints for buildings. # 2.3.4 diff --git a/qt_ui/widgets/combos/QPredefinedWaypointSelectionComboBox.py b/qt_ui/widgets/combos/QPredefinedWaypointSelectionComboBox.py index d3e266b5..8bb72d81 100644 --- a/qt_ui/widgets/combos/QPredefinedWaypointSelectionComboBox.py +++ b/qt_ui/widgets/combos/QPredefinedWaypointSelectionComboBox.py @@ -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,