diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-03 13:37:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-03 13:37:08 +0300 |
commit | 4f00e33aae207561fc0b34ee7d181d7a74755fd5 (patch) | |
tree | 4a527bc9c6c25ce452048ee44913bd2a02aa50e5 /src/net/ea | |
parent | 757df49cbbce33bba23ec0d642da3901f3ec5bbd (diff) | |
download | plus-4f00e33aae207561fc0b34ee7d181d7a74755fd5.tar.gz plus-4f00e33aae207561fc0b34ee7d181d7a74755fd5.tar.bz2 plus-4f00e33aae207561fc0b34ee7d181d7a74755fd5.tar.xz plus-4f00e33aae207561fc0b34ee7d181d7a74755fd5.zip |
Add missing check.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/partyhandler.cpp | 3 |
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()); } } |