Make IsValidWeaponID check weapon info on CS:S
This commit is contained in:
parent
b68405b651
commit
d8f0484327
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user