summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-03 13:37:08 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-03 13:37:08 +0300
commit4f00e33aae207561fc0b34ee7d181d7a74755fd5 (patch)
tree4a527bc9c6c25ce452048ee44913bd2a02aa50e5
parent757df49cbbce33bba23ec0d642da3901f3ec5bbd (diff)
downloadmanaplus-4f00e33aae207561fc0b34ee7d181d7a74755fd5.tar.gz
manaplus-4f00e33aae207561fc0b34ee7d181d7a74755fd5.tar.bz2
manaplus-4f00e33aae207561fc0b34ee7d181d7a74755fd5.tar.xz
manaplus-4f00e33aae207561fc0b34ee7d181d7a74755fd5.zip
Add missing check.
-rw-r--r--src/net/ea/partyhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp
index d1e682e43..9356e2272 100644
--- a/src/net/ea/partyhandler.cpp
+++ b/src/net/ea/partyhandler.cpp
@@ -103,7 +103,8 @@ void PartyHandler::processPartyInfo(Net::MessageIn &msg) const
if ((*it)->getOnline())
onlineNames.insert((*it)->getName());
}
- onlineNames.insert(localPlayer->getName());
+ if (localPlayer)
+ onlineNames.insert(localPlayer->getName());
}
}