Skip to content

Commit

Permalink
Fix admin flag check
Browse files Browse the repository at this point in the history
  • Loading branch information
xen-000 committed Oct 28, 2023
1 parent 28723e1 commit 14476c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/playermanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 14476c7

Please sign in to comment.