summaryrefslogtreecommitdiff
path: root/src/misc_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-10-16 21:15:34 +0000
committerrubidium <rubidium@openttd.org>2007-10-16 21:15:34 +0000
commit406c22d7e3e52e5fc6fd837dbad857b9dede97fc (patch)
tree1ba1bd1507e121a70b4a1930721a37b89ed87c98 /src/misc_cmd.cpp
parentc0e5ca11dcca0ece6813c904886b1b78fb9399ce (diff)
downloadopenttd-406c22d7e3e52e5fc6fd837dbad857b9dede97fc.tar.xz
(svn r11279) -Codechange: use a typedeffed type for all magic with GameDifficulty instead on relying ints to always be 32 bits, which they are not.
Diffstat (limited to 'src/misc_cmd.cpp')
-rw-r--r--src/misc_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc_cmd.cpp b/src/misc_cmd.cpp
index 45e8f99c6..7102135e9 100644
--- a/src/misc_cmd.cpp
+++ b/src/misc_cmd.cpp
@@ -380,7 +380,7 @@ CommandCost CmdChangeDifficultyLevel(TileIndex tile, uint32 flags, uint32 p1, ui
if (flags & DC_EXEC) {
if (p1 != (uint32)-1L) {
- ((int*)&_opt_ptr->diff)[p1] = p2;
+ ((GDType*)&_opt_ptr->diff)[p1] = p2;
_opt_ptr->diff_level = 3; // custom difficulty level
} else {
_opt_ptr->diff_level = p2;