Fixed minor player selection bug in tf2 extension

--HG--
branch : sourcemod-1.0.x
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/branches/sourcemod-1.0.x%402058
This commit is contained in:
Matt Woodrow 2008-04-14 03:13:02 +00:00
parent 4d46aa34e9
commit e6f854b760

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())