changeset 6437 | 59e4ad70c837 |
parent 6417 | 26acff62d001 |
child 6445 | 6db2e90e8bcf |
--- a/src/economy.cpp Thu Feb 22 18:44:42 2007 +0000 +++ b/src/economy.cpp Thu Feb 22 19:05:26 2007 +0000 @@ -613,9 +613,8 @@ static void AddSingleInflation(int32 *value, uint16 *frac, int32 amt) { - int64 tmp; + int64 tmp = (int64)*value * amt; int32 low; - tmp = BIGMULS(*value, amt); *frac = (uint16)(low = (uint16)tmp + *frac); *value += (int32)(tmp >> 16) + (low >> 16); }