summaryrefslogtreecommitdiff
path: root/src/gui/setup_players.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/setup_players.cpp')
-rw-r--r--src/gui/setup_players.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/setup_players.cpp b/src/gui/setup_players.cpp
index fe72a29c..529e69a5 100644
--- a/src/gui/setup_players.cpp
+++ b/src/gui/setup_players.cpp
@@ -127,8 +127,8 @@ public:
signalBeforeUpdate();
freeWidgets();
- if (mPlayers)
- delete mPlayers;
+
+ delete mPlayers;
mPlayers = player_relations.getPlayers();
// set up widgets
@@ -162,8 +162,7 @@ public:
virtual void freeWidgets()
{
- if (mPlayers)
- delete mPlayers;
+ delete mPlayers;
mPlayers = nullptr;
delete_all(mWidgets);