diff options
Diffstat (limited to 'src/gui/models')
-rw-r--r-- | src/gui/models/playertablemodel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/models/playertablemodel.cpp b/src/gui/models/playertablemodel.cpp index e3458abc3..744c56c57 100644 --- a/src/gui/models/playertablemodel.cpp +++ b/src/gui/models/playertablemodel.cpp @@ -120,6 +120,8 @@ void PlayerTableModel::updateModelInRow(const int row) const { const DropDown *const choicebox = static_cast<DropDown *>( getElementAt(row, RELATION_CHOICE_COLUMN)); + if (!choicebox) + return; player_relations.setRelation(getPlayerAt(row), static_cast<RelationT>( choicebox->getSelected())); |