diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-04-04 15:15:17 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-04-04 15:15:34 -0600 |
commit | d17c63e1bb5579fb05c58f9abc3fb4be5bb9d58f (patch) | |
tree | e7406c15ceb898e17b798d738506478fc9c73e7b /src/playerrelations.cpp | |
parent | adae511e08f2c473f738bbd00987fc3a1aad0123 (diff) | |
download | mana-d17c63e1bb5579fb05c58f9abc3fb4be5bb9d58f.tar.gz mana-d17c63e1bb5579fb05c58f9abc3fb4be5bb9d58f.tar.bz2 mana-d17c63e1bb5579fb05c58f9abc3fb4be5bb9d58f.tar.xz mana-d17c63e1bb5579fb05c58f9abc3fb4be5bb9d58f.zip |
Fix a crash in PlayerRelationsManager
Diffstat (limited to 'src/playerrelations.cpp')
-rw-r--r-- | src/playerrelations.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/playerrelations.cpp b/src/playerrelations.cpp index 113ce224..bd657f4f 100644 --- a/src/playerrelations.cpp +++ b/src/playerrelations.cpp @@ -222,7 +222,7 @@ bool PlayerRelationsManager::hasPermission(const std::string &name, if (mIgnoreStrategy) { Being *b = beingManager->findBeingByName(name, Being::PLAYER); - if (b->getType() == Being::PLAYER) + if (b && b->getType() == Being::PLAYER) mIgnoreStrategy->ignore(static_cast<Player *>(b), rejections); } } |