From 08ee66582f53822254763d79ca511c24b136be0f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 20 Jul 2015 14:40:19 +0300 Subject: Add some missing checks. --- src/gui/models/playertablemodel.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/gui/models/playertablemodel.cpp') 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; -- cgit v1.2.3-70-g09d2