diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2010-08-23 17:28:05 +0200 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-08-23 09:35:54 -0600 |
commit | 000c3799eb85234b9baf5ede86dd966d929112d8 (patch) | |
tree | 0975c85bf25848d457144d09c7357f7e85392b3f | |
parent | 371c36f8817780a913bc2c600c2204e61267972d (diff) | |
download | mana-client-000c3799eb85234b9baf5ede86dd966d929112d8.tar.gz mana-client-000c3799eb85234b9baf5ede86dd966d929112d8.tar.bz2 mana-client-000c3799eb85234b9baf5ede86dd966d929112d8.tar.xz mana-client-000c3799eb85234b9baf5ede86dd966d929112d8.zip |
Fixing segmentation fault in partyhandler
Segmentation fault happens if a player leaves
your party while he is out of sight.
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
-rw-r--r-- | src/net/tmwa/partyhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/tmwa/partyhandler.cpp b/src/net/tmwa/partyhandler.cpp index e86d41fa..a92a27df 100644 --- a/src/net/tmwa/partyhandler.cpp +++ b/src/net/tmwa/partyhandler.cpp @@ -253,7 +253,7 @@ void PartyHandler::handleMessage(Net::MessageIn &msg) nick.c_str()), BY_SERVER); Being *b = beingManager->findBeing(id); - if (b->getType() == Being::PLAYER) + if (b && b->getType() == Being::PLAYER) static_cast<Player*>(b)->setParty(NULL); taParty->removeMember(id); |