Skip to content

Commit

Permalink
Update MatchUtil.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileYzn authored Feb 5, 2024
1 parent 4cea3d3 commit 107033b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MatchBot/MatchUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ std::vector<CBasePlayer*> CMatchUtil::GetPlayers(bool InGameOnly, bool ReturnBot

if (Player)
{
if (!Player->IsDormant())
if (!Player->IsDormant() && Player->IsPlayer())
{
if (InGameOnly)
{
Expand Down Expand Up @@ -821,4 +821,4 @@ CBasePlayer* CMatchUtil::FindPlayer(std::string Target)
}

return nullptr;
}
}

0 comments on commit 107033b

Please sign in to comment.