summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {