From 14476c7874325a52ef46be2b49cad2d0b0bc0c21 Mon Sep 17 00:00:00 2001 From: xen Date: Sat, 28 Oct 2023 15:59:28 +0200 Subject: [PATCH] Fix admin flag check --- src/playermanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)