From 4165548661b81b2ca80c0dc46bf177352ddbe6f1 Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Sat, 12 Nov 2005 01:22:01 +0000 Subject: [PATCH] fixed bug at21142 --- plugins/cstrike/statsx.sma | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/cstrike/statsx.sma b/plugins/cstrike/statsx.sma index 5d173974..138e6410 100755 --- a/plugins/cstrike/statsx.sma +++ b/plugins/cstrike/statsx.sma @@ -1059,7 +1059,9 @@ public cmdReport(id) new iWeapon, iClip, iAmmo, iHealth, iArmor iWeapon = get_user_weapon(id, iClip, iAmmo) - xmod_get_wpnname(iWeapon, t_sWpn, MAX_WEAPON_LENGTH) + + if (iWeapon != 0) + xmod_get_wpnname(iWeapon, t_sWpn, MAX_WEAPON_LENGTH) iHealth = get_user_health(id) iArmor = get_user_armor(id)