From d01d6b06fa9f4b0571f7bd170f0c7d32dbe24097 Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Wed, 17 May 2006 13:44:58 +0000 Subject: [PATCH] little fix --- amxmodx/amxmodx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amxmodx/amxmodx.cpp b/amxmodx/amxmodx.cpp index 5edb7e07..f29824e8 100755 --- a/amxmodx/amxmodx.cpp +++ b/amxmodx/amxmodx.cpp @@ -639,13 +639,13 @@ static cell AMX_NATIVE_CALL get_weaponid(AMX *amx, cell *params) int ilen; const char *name = get_amxstring(amx, params[1], 0, ilen); - for (int i = 0; i < MAX_WEAPONS; i++) + for (int i = 1; i < MAX_WEAPONS; i++) { if (!strcmp(g_weaponsData[i].fullName.c_str(), name)) return g_weaponsData[i].iId; } - return -1; + return 0; } static cell AMX_NATIVE_CALL get_user_weapons(AMX *amx, cell *params) /* 3 param */