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())
|
if (!res.found())
|
||||||
return false;
|
return false;
|
||||||
#else
|
#else
|
||||||
else if (id > (int)SMCSWeapon_NIGHTVISION)
|
else if (id > SMCSWeapon_NIGHTVISION || !GetWeaponInfo(id))
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user