(svn r10212) -Fix [FS#723]: money overflow bugs in many locations.

This commit is contained in:
rubidium
2007-06-19 00:05:26 +00:00
parent 623a848cca
commit f765b3d6aa
6 changed files with 31 additions and 9 deletions

View File

@@ -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;