Fixed minor player selection bug in tf2 extension

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402059
This commit is contained in:
Matt Woodrow 2008-04-14 03:13:15 +00:00
parent 101d2359de
commit 90d4fed4a9

View File

@ -111,7 +111,7 @@ CBaseEntity *UTIL_GetCBaseEntity(int num, bool onlyPlayers)
return NULL;
}
if (num > 0 && num < playerhelpers->GetMaxClients())
if (num > 0 && num <= playerhelpers->GetMaxClients())
{
IGamePlayer *pPlayer = playerhelpers->GetGamePlayer(pEdict);
if (!pPlayer || !pPlayer->IsConnected())