diff options
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); } } |