summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-21 00:42:32 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-21 00:42:32 +0300
commit849bf8bca7d8df41bc6adca236fef8ba2886d1ff (patch)
treebb0587c4b02e7033460358f8a7182c94555ed905 /src/utils
parent0de4bb29a90db0f6493263b8db4cb1329935b5a3 (diff)
downloadmv-849bf8bca7d8df41bc6adca236fef8ba2886d1ff.tar.gz
mv-849bf8bca7d8df41bc6adca236fef8ba2886d1ff.tar.bz2
mv-849bf8bca7d8df41bc6adca236fef8ba2886d1ff.tar.xz
mv-849bf8bca7d8df41bc6adca236fef8ba2886d1ff.zip
Remove useless checks.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/chatutils.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils/chatutils.cpp b/src/utils/chatutils.cpp
index 0d2c5cdd9..eab50ee1c 100644
--- a/src/utils/chatutils.cpp
+++ b/src/utils/chatutils.cpp
@@ -159,8 +159,7 @@ void replaceVars(std::string &str)
std::string newStr;
const Party *party = nullptr;
if (localPlayer->isInParty() &&
- (party = localPlayer->getParty()) &&
- party)
+ (party = localPlayer->getParty()))
{
party->getNames(names);
FOR_EACH (StringVectCIter, it, names)