Skip to content

Commit 726c954

Browse files
authored
Fix Crash On selecting different ship types (#6920)
1 parent b8b24a6 commit 726c954

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

qtfred/src/mission/dialogs/ShipEditor/ShipEditorDialogModel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,7 @@ namespace fso {
13661366
return Editor::wing_is_player_wing(wing);
13671367
}
13681368

1369-
std::set<size_t> ShipEditorDialogModel::getShipOrders() const
1369+
const std::set<size_t> &ShipEditorDialogModel::getShipOrders() const
13701370
{
13711371
return ship_orders;
13721372
}

qtfred/src/mission/dialogs/ShipEditor/ShipEditorDialogModel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class ShipEditorDialogModel : public AbstractDialogModel {
182182
* @param wing Takes an integer id of the wing
183183
*/
184184
static bool wing_is_player_wing(const int);
185-
std::set<size_t> getShipOrders() const;
185+
const std::set<size_t> &getShipOrders() const;
186186

187187
bool getTexEditEnable() const;
188188
/**

0 commit comments

Comments
 (0)