forked from mirror/OpenTTD
(svn r18905) -Fix (r18902): Compile error on 64-bit with gcc
This commit is contained in:
@@ -1673,7 +1673,7 @@ struct GameSettingsWindow : Window {
|
|||||||
/* Save the correct currency-translated value */
|
/* Save the correct currency-translated value */
|
||||||
if (sd->desc.flags & SGF_CURRENCY) value /= _currency->rate;
|
if (sd->desc.flags & SGF_CURRENCY) value /= _currency->rate;
|
||||||
} else {
|
} else {
|
||||||
value = (int32)sd->desc.def;
|
value = (int32)(size_t)sd->desc.def;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((sd->desc.flags & SGF_PER_COMPANY) != 0) {
|
if ((sd->desc.flags & SGF_PER_COMPANY) != 0) {
|
||||||
|
Reference in New Issue
Block a user