diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-30 15:11:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-30 15:11:07 +0300 |
commit | c3bb4f8f2eff05ccdb8a3f9ef58fc741eedfaa79 (patch) | |
tree | dc164a33a3732de36fcca452cc19841ed3663ff1 /src/gui/models | |
parent | 9c6f59308ebf8d488e0949c76e7c452876fe753f (diff) | |
download | mv-c3bb4f8f2eff05ccdb8a3f9ef58fc741eedfaa79.tar.gz mv-c3bb4f8f2eff05ccdb8a3f9ef58fc741eedfaa79.tar.bz2 mv-c3bb4f8f2eff05ccdb8a3f9ef58fc741eedfaa79.tar.xz mv-c3bb4f8f2eff05ccdb8a3f9ef58fc741eedfaa79.zip |
Fix issies found by gcc 6 in paranoid mode.
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())); |