diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 45e8836a95..97a47895f0 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) {