From 0a74f092738fbddce74405e3137bcf27c045e5a1 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Fri, 10 Sep 2004 02:58:41 +0000 Subject: [PATCH] blah --- dlls/ns/ns/NPData.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ns/ns/NPData.cpp b/dlls/ns/ns/NPData.cpp index 42c9ce63..23c2348f 100755 --- a/dlls/ns/ns/NPData.cpp +++ b/dlls/ns/ns/NPData.cpp @@ -303,7 +303,7 @@ static cell AMX_NATIVE_CALL ns_set_deaths(AMX *amx, cell *params) static cell AMX_NATIVE_CALL ns_get_struct_owner(AMX *amx, cell *params) { int id = params[1]; - if (id <= gpGlobals->maxClients || id <= gpGlobals->maxEntities) + if (id <= gpGlobals->maxClients || id >= gpGlobals->maxEntities) return 0; edict_t *pEntity = INDEXENT2(id); if (!pEntity) @@ -316,7 +316,7 @@ static cell AMX_NATIVE_CALL ns_set_struct_owner(AMX *amx, cell *params) { int id = params[1]; int ido = params[2]; - if (id <= gpGlobals->maxClients || id <= gpGlobals->maxEntities) + if (id <= gpGlobals->maxClients || id >= gpGlobals->maxEntities) return 0; if (ido > gpGlobals->maxClients || ido < -1) return 0;