summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2010-01-23 22:25:00 +0000
committerpeter1138 <peter1138@openttd.org>2010-01-23 22:25:00 +0000
commitc83d57f228624bdbb72605d7a2bfdfcd16126fe2 (patch)
treec32272faae994196a7f544185c5ba9f14a1eb3a5
parenta4f50de959a0b3c4f7c50450a65c98effa5886d4 (diff)
downloadopenttd-c83d57f228624bdbb72605d7a2bfdfcd16126fe2.tar.xz
(svn r18905) -Fix (r18902): Compile error on 64-bit with gcc
-rw-r--r--src/settings_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index 45e8836a9..97a47895f 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -1673,7 +1673,7 @@ struct GameSettingsWindow : Window {
/* Save the correct currency-translated value */
if (sd->desc.flags & SGF_CURRENCY) value /= _currency->rate;
} else {
- value = (int32)sd->desc.def;
+ value = (int32)(size_t)sd->desc.def;
}
if ((sd->desc.flags & SGF_PER_COMPANY) != 0) {