summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan G Rennison <j.g.rennison@gmail.com>2018-07-02 21:47:55 +0100
committerIngo von Borstel <github@planetmaker.de>2018-07-02 22:47:55 +0200
commit491a884944dfd4955151affac0a98814259007d6 (patch)
treee7a257cf04c8efc4ac4ed09ce41f43d954bf971a
parent4a35409e0f0b3868accc7e8f0afc0b172e9292f5 (diff)
downloadopenttd-491a884944dfd4955151affac0a98814259007d6.tar.xz
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
-rw-r--r--src/cargo_type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cargo_type.h b/src/cargo_type.h
index c84f1f490..1eca0edff 100644
--- a/src/cargo_type.h
+++ b/src/cargo_type.h
@@ -72,7 +72,7 @@ enum CargoType {
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 {