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
commitc393a28bf936bdf559ba7ff6378d2e73867e7c23 (patch)
tree1ba1bd1507e121a70b4a1930721a37b89ed87c98 /src/misc_cmd.cpp
parent440fa086693ab884ff4758ddbeffc18f84104c41 (diff)
downloadopenttd-c393a28bf936bdf559ba7ff6378d2e73867e7c23.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;