Skip to content

Commit 9ad3291

Browse files
committed
1 parent 4e55a72 commit 9ad3291

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/utilities/conversions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ inline IPlayerInfo *PlayerInfoFromIndex( int iEntityIndex, bool bRaiseException
248248
{
249249
IPlayerInfo *pPlayerInfo = NULL;
250250

251-
if (iEntityIndex > WORLD_ENTITY_INDEX && iEntityIndex < gpGlobals->maxClients)
251+
if (iEntityIndex > WORLD_ENTITY_INDEX && iEntityIndex <= gpGlobals->maxClients)
252252
{
253253
edict_t *pEdict = EdictFromIndex(iEntityIndex);
254254
if (pEdict)

0 commit comments

Comments
 (0)