summaryrefslogtreecommitdiff
path: root/src/utils/chatutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/chatutils.cpp')
-rw-r--r--src/utils/chatutils.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/chatutils.cpp b/src/utils/chatutils.cpp
index c5b7e25ad..17ee9e11a 100644
--- a/src/utils/chatutils.cpp
+++ b/src/utils/chatutils.cpp
@@ -158,7 +158,9 @@ void replaceVars(std::string &str)
StringVect names;
std::string newStr;
const Party *party = nullptr;
- if (localPlayer->isInParty() && (party = localPlayer->getParty()))
+ if (localPlayer->isInParty() &&
+ (party = localPlayer->getParty()) &&
+ party)
{
party->getNames(names);
FOR_EACH (StringVectCIter, it, names)