diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-20 14:40:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-20 14:40:19 +0300 |
commit | 08ee66582f53822254763d79ca511c24b136be0f (patch) | |
tree | f91f636abe752a8675a63c8f4e11e1ce561a123b /src/gui/models/playertablemodel.cpp | |
parent | 06cd12850078d502915aa86bbcd65fc1cd4ec712 (diff) | |
download | manaplus-08ee66582f53822254763d79ca511c24b136be0f.tar.gz manaplus-08ee66582f53822254763d79ca511c24b136be0f.tar.bz2 manaplus-08ee66582f53822254763d79ca511c24b136be0f.tar.xz manaplus-08ee66582f53822254763d79ca511c24b136be0f.zip |
Add some missing checks.
Diffstat (limited to 'src/gui/models/playertablemodel.cpp')
-rw-r--r-- | src/gui/models/playertablemodel.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gui/models/playertablemodel.cpp b/src/gui/models/playertablemodel.cpp index 8844404a9..b846e7b91 100644 --- a/src/gui/models/playertablemodel.cpp +++ b/src/gui/models/playertablemodel.cpp @@ -96,10 +96,6 @@ void PlayerTableModel::playerRelationsUpdated() freeWidgets(); StringVect *const player_names = player_relations.getPlayers(); - - if (!player_names) - return; - delete mPlayers; mPlayers = player_names; |