From 7a7a0291a3f641d26e09a29579947777a8eb8782 Mon Sep 17 00:00:00 2001 From: Greyscale Date: Thu, 28 May 2009 23:47:04 -0700 Subject: [PATCH] (Quickfix that caused error is fixed here.) --- src/zr/weapons/restrict.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/zr/weapons/restrict.inc b/src/zr/weapons/restrict.inc index 81cd94d..165bac6 100644 --- a/src/zr/weapons/restrict.inc +++ b/src/zr/weapons/restrict.inc @@ -206,21 +206,21 @@ public Action:RestrictBuyCommand(client, argc) */ RestrictQuery:RestrictWeapon(bool:restrict, const String:target[], &bool:single = true, String:returntarget[], maxlen) { - // Strip "weapon_" from target. - ReplaceString(target, WEAPONS_MAX_LENGTH, "weapon_", ""); - // Copy 'target' to 'returntarget' to be possibly changed later. strcopy(returntarget, maxlen, target); + // Strip "weapon_" from target. + ReplaceString(returntarget, maxlen, "weapon_", ""); + // Find index of the given weapon type. - new typeindex = RestrictTypeToIndex(target); + new typeindex = RestrictTypeToIndex(returntarget); // Single weapon. if (typeindex == -1) { single = true; - new weaponindex = WeaponsNameToIndex(target); + new weaponindex = WeaponsNameToIndex(returntarget); // If weapon index is invalid, then return invalid. if (weaponindex == -1)