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 | f765b3d6aa70eae559d02cda947e6ff5e18b8c1a (patch) | |
tree | b07b07a2f5f04c71f8608530c990ebe9bdf603e1 /src/oldloader.cpp | |
parent | 623a848cca99d7686f4e594fea4573d5bb40ed32 (diff) | |
download | openttd-f765b3d6aa70eae559d02cda947e6ff5e18b8c1a.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; |