diff --git a/src/playermanager.cpp b/src/playermanager.cpp index 590736da..d7c92c2d 100644 --- a/src/playermanager.cpp +++ b/src/playermanager.cpp @@ -64,7 +64,7 @@ void ZEPlayer::CheckAdmin() bool ZEPlayer::IsAdminFlagSet(uint64 iFlag) { - return m_iAdminFlags & iFlag; + return !iFlag || (m_iAdminFlags & iFlag); } void CPlayerManager::OnBotConnected(CPlayerSlot slot)