From 107033b05c03484f6d4e621f083d02e3b5a3960d Mon Sep 17 00:00:00 2001 From: Cleverson Date: Mon, 5 Feb 2024 08:06:47 -0300 Subject: [PATCH] Update MatchUtil.cpp --- MatchBot/MatchUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MatchBot/MatchUtil.cpp b/MatchBot/MatchUtil.cpp index 70a5031..dbee7ee 100644 --- a/MatchBot/MatchUtil.cpp +++ b/MatchBot/MatchUtil.cpp @@ -285,7 +285,7 @@ std::vector CMatchUtil::GetPlayers(bool InGameOnly, bool ReturnBot if (Player) { - if (!Player->IsDormant()) + if (!Player->IsDormant() && Player->IsPlayer()) { if (InGameOnly) { @@ -821,4 +821,4 @@ CBasePlayer* CMatchUtil::FindPlayer(std::string Target) } return nullptr; -} \ No newline at end of file +}