From 8d06f80eeb231f54b3747785dbfdf95e4bf86cda Mon Sep 17 00:00:00 2001 From: Lukasz Wlasinksi Date: Tue, 21 Sep 2004 18:04:22 +0000 Subject: [PATCH] fixed some bugs in weapon stats functions --- dlls/csx/source/rank.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/csx/source/rank.cpp b/dlls/csx/source/rank.cpp index c0d0c87c..08eca677 100755 --- a/dlls/csx/source/rank.cpp +++ b/dlls/csx/source/rank.cpp @@ -78,7 +78,7 @@ static cell AMX_NATIVE_CALL get_user_wrstats(AMX *amx, cell *params) /* 4 param return 0; } int weapon = params[2]; - if (weapon<0||weapon>=MAX_WEAPONS){ + if (weapon<0||weapon>=MAX_WEAPONS+MAX_CWEAPONS){ MF_RaiseAmxError(amx,AMX_ERR_NATIVE); return 0; } @@ -109,7 +109,7 @@ static cell AMX_NATIVE_CALL get_user_wstats(AMX *amx, cell *params) /* 4 param * return 0; } int weapon = params[2]; - if (weapon<0||weapon>=MAX_WEAPONS){ + if (weapon<0||weapon>=MAX_WEAPONS+MAX_CWEAPONS){ MF_RaiseAmxError(amx,AMX_ERR_NATIVE); return 0; }