diff --git a/extensions/cstrike/util_cstrike.cpp b/extensions/cstrike/util_cstrike.cpp index 414f7e71..bcab0d80 100644 --- a/extensions/cstrike/util_cstrike.cpp +++ b/extensions/cstrike/util_cstrike.cpp @@ -576,7 +576,7 @@ bool IsValidWeaponID(int id) if (!res.found()) return false; #else - else if (id > (int)SMCSWeapon_NIGHTVISION) + else if (id > SMCSWeapon_NIGHTVISION || !GetWeaponInfo(id)) return false; #endif return true;