summaryrefslogtreecommitdiff
path: root/src/playerrelations.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-04-04 15:15:17 -0600
committerJared Adams <jaxad0127@gmail.com>2010-04-04 15:15:34 -0600
commitd17c63e1bb5579fb05c58f9abc3fb4be5bb9d58f (patch)
treee7406c15ceb898e17b798d738506478fc9c73e7b /src/playerrelations.cpp
parentadae511e08f2c473f738bbd00987fc3a1aad0123 (diff)
downloadmana-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.cpp2
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);
}
}