Make IsValidWeaponID check weapon info on CS:S

This commit is contained in:
Ruben Gonzalez 2017-09-03 19:30:35 -04:00
parent b68405b651
commit d8f0484327

View File

@ -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;