summaryrefslogtreecommitdiff
path: root/src/gui/models
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-30 15:11:07 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-30 15:11:07 +0300
commitc3bb4f8f2eff05ccdb8a3f9ef58fc741eedfaa79 (patch)
treedc164a33a3732de36fcca452cc19841ed3663ff1 /src/gui/models
parent9c6f59308ebf8d488e0949c76e7c452876fe753f (diff)
downloadmv-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.cpp2
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()));