diff options
Diffstat (limited to 'src/playerrelations.cpp')
-rw-r--r-- | src/playerrelations.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/playerrelations.cpp b/src/playerrelations.cpp index 218b1e50a..184ef8adf 100644 --- a/src/playerrelations.cpp +++ b/src/playerrelations.cpp @@ -377,11 +377,8 @@ StringVect *PlayerRelationsManager::getPlayersByRelation( void PlayerRelationsManager::removePlayer(const std::string &name) { - if (mRelations[name]) - delete mRelations[name]; - + delete mRelations[name]; mRelations.erase(name); - signalUpdate(name); } |