diff options
author | rubidium <rubidium@openttd.org> | 2007-06-21 15:37:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-06-21 15:37:05 +0000 |
commit | fecf81496a38e67acc8e192458a21eb2d64732ab (patch) | |
tree | 66482e59fc10595a57f39949a51dc08cf6b27839 /src/strings.cpp | |
parent | 3307cb32f43c4c9b6bd343b2db519d571ebc2d6e (diff) | |
download | openttd-fecf81496a38e67acc8e192458a21eb2d64732ab.tar.xz |
(svn r10250) -Fix: money is always 64 bits, so always parse those 64 bits.
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 24fc29c47..5ac7133c4 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -569,7 +569,7 @@ static char* FormatString(char* buff, const char* str, const int32* argv, uint c } case SCC_CURRENCY_COMPACT: /* {CURRCOMPACT} */ - buff = FormatGenericCurrency(buff, _currency, GetInt32(&argv), true, last); + buff = FormatGenericCurrency(buff, _currency, GetInt64(&argv), true, last); break; case SCC_REVISION: /* {REV} */ @@ -801,7 +801,7 @@ static char* FormatString(char* buff, const char* str, const int32* argv, uint c break; case SCC_CURRENCY: // {CURRENCY} - buff = FormatGenericCurrency(buff, _currency, GetInt32(&argv), false, last); + buff = FormatGenericCurrency(buff, _currency, GetInt64(&argv), false, last); break; case SCC_WAYPOINT_NAME: { // {WAYPOINT} |