From f765b3d6aa70eae559d02cda947e6ff5e18b8c1a Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 19 Jun 2007 00:05:26 +0000 Subject: (svn r10212) -Fix [FS#723]: money overflow bugs in many locations. --- src/oldloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/oldloader.cpp') 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; -- cgit v1.2.3-70-g09d2