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:
parent
4d46aa34e9
commit
e6f854b760
@ -111,7 +111,7 @@ CBaseEntity *UTIL_GetCBaseEntity(int num, bool onlyPlayers)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (num > 0 && num < playerhelpers->GetMaxClients())
|
if (num > 0 && num <= playerhelpers->GetMaxClients())
|
||||||
{
|
{
|
||||||
IGamePlayer *pPlayer = playerhelpers->GetGamePlayer(pEdict);
|
IGamePlayer *pPlayer = playerhelpers->GetGamePlayer(pEdict);
|
||||||
if (!pPlayer || !pPlayer->IsConnected())
|
if (!pPlayer || !pPlayer->IsConnected())
|
||||||
|
Loading…
Reference in New Issue
Block a user