News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

r2144 - last_month_bev is not initialized

Started by z9999, November 27, 2008, 09:33:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

z9999

simutrans r2144

Loading a new game doesn't initialize "last_month_bev" value.

When I play with pak96.comic, default.sve has 2865 habitants.
Then I load my saved game which has 1599 habitants. WORLD_GROWTH of this month shows as -1266.

WORLD_GROWTH of this month = 1599 - 2865 = -1266

z9999

Thank you. But still have a problem in r2145.
Maybe.

simworld.cc:3690
Quote
      last_month_bev = finance_history_month[0][WORLD_CITICENS];
=>
Quote
      last_month_bev = finance_history_month[1][WORLD_CITICENS];


prissi

Ok,  correct typo spotted. Will correct it soon.