Changeset - r22945:4ef2e91b5537
[Not reviewed]
master
0 1 0
Jonathan G Rennison - 6 years ago 2018-07-02 20:47:55
j.g.rennison@gmail.com
Fix: ALL_CARGOTYPES mask constant was 32 instead of 64 bits (#6845)

NUM_CARGO and CargoTypes were increased from 32 to 64 cargoes/bits
respectively in commit 11ab3c4ea2f6a6d29efda8c9ba2af04194621ea7
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/cargo_type.h
Show inline comments
 
@@ -69,13 +69,13 @@ enum CargoType {
 
	CT_NO_REFIT     = 0xFE, ///< Do not refit cargo of a vehicle (used in vehicle orders and auto-replace/auto-new).
 
	CT_INVALID      = 0xFF, ///< Invalid cargo type.
 
};
 

	
 
typedef uint64 CargoTypes;
 

	
 
static const CargoTypes ALL_CARGOTYPES = (CargoTypes)UINT32_MAX;
 
static const CargoTypes ALL_CARGOTYPES = (CargoTypes)UINT64_MAX;
 

	
 
/** Class for storing amounts of cargo */
 
struct CargoArray {
 
private:
 
	uint amount[NUM_CARGO]; ///< Amount of each type of cargo.
 

	
0 comments (0 inline, 0 general)