summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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());
}
}