summaryrefslogtreecommitdiff
path: root/src/script/api
diff options
context:
space:
mode:
authorSamuXarick <43006711+SamuXarick@users.noreply.github.com>2021-01-10 18:51:48 +0000
committerMichael Lutz <michi@icosahedron.de>2021-01-10 22:31:01 +0100
commit6298d9221a8c0a2eb4020e6d5887ad8a3cb1c97f (patch)
tree96835470f37aa7d8f7a9c4c6df0cf7f31ed6a5fb /src/script/api
parentf6abc81cf17aa03f1718f523ce049e0e41e70303 (diff)
downloadopenttd-6298d9221a8c0a2eb4020e6d5887ad8a3cb1c97f.tar.xz
Fix 218f40e: Warning about 32-bit shift implicitly converted to 64 bits
Diffstat (limited to 'src/script/api')
-rw-r--r--src/script/api/script_cargo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/api/script_cargo.cpp b/src/script/api/script_cargo.cpp
index 6b0a4aa7a..5e092b52a 100644
--- a/src/script/api/script_cargo.cpp
+++ b/src/script/api/script_cargo.cpp
@@ -31,7 +31,7 @@
{
if (!IsValidCargo(cargo_type)) return nullptr;
- ::SetDParam(0, 1 << cargo_type);
+ ::SetDParam(0, 1ULL << cargo_type);
return GetString(STR_JUST_CARGO_LIST);
}
@@ -80,4 +80,4 @@
{
if (!ScriptCargo::IsValidCargo(cargo_type)) return INVALID_DISTRIBUTION_TYPE;
return (ScriptCargo::DistributionType)_settings_game.linkgraph.GetDistributionType(cargo_type);
-} \ No newline at end of file
+}