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:
parent
101d2359de
commit
90d4fed4a9
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user