From d17c63e1bb5579fb05c58f9abc3fb4be5bb9d58f Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 4 Apr 2010 15:15:17 -0600 Subject: Fix a crash in PlayerRelationsManager --- src/playerrelations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/playerrelations.cpp') 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(b), rejections); } } -- cgit v1.2.3-70-g09d2