diff options
author | rubidium <rubidium@openttd.org> | 2007-06-19 00:05:26 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-06-19 00:05:26 +0000 |
commit | 16ce2192e45cbc4d2ba01267578ea5c3943caf0f (patch) | |
tree | b07b07a2f5f04c71f8608530c990ebe9bdf603e1 /src/oldloader.cpp | |
parent | 23af871615557914fd36744afe46a93a360603ce (diff) | |
download | openttd-16ce2192e45cbc4d2ba01267578ea5c3943caf0f.tar.xz |
(svn r10212) -Fix [FS#723]: money overflow bugs in many locations.
Diffstat (limited to 'src/oldloader.cpp')
-rw-r--r-- | src/oldloader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp index d0a4030bd..28496cc7c 100644 --- a/src/oldloader.cpp +++ b/src/oldloader.cpp @@ -541,7 +541,7 @@ static bool LoadOldPrice(LoadgameState *ls, int num) /* We use a struct to store the prices, but they are ints in a row.. so just access the struct as an array of int32's */ - ((int32*)&_price)[num] = _old_price; + ((Money*)&_price)[num] = _old_price; _price_frac[num] = _old_price_frac; return true; |