Bug 5057 - Two weapon number range checks allows invalid number
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: GIT MASTER
Hardware: All All
: P3 minor
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2011-06-26 21:15 EDT by Zack Middleton
Modified: 2011-06-27 19:53:52 EDT
1 user (show)

See Also:


Attachments
Disallow invalid weapon number WP_NUM_WEAPONS (597 bytes, patch)
2011-06-26 21:15 EDT, Zack Middleton

Description Zack Middleton 2011-06-26 21:15:25 EDT
Created attachment 2797 [details]
Disallow invalid weapon number WP_NUM_WEAPONS

Two of the weapon number range checks only check if greater than WP_NUM_WEAPONS, but should check if equal to WP_NUM_WEAPONS also.
Comment 1 Thilo Schulz 2011-06-27 19:53:52 EDT
applied r2063, thx