Skip to main content
Topic: r2144 - last_month_bev is not initialized (Read 2912 times) previous topic - next topic

r2144 - last_month_bev is not initialized

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

Re: r2144 - last_month_bev is not initialized

Reply #1
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];


Re: r2144 - last_month_bev is not initialized

Reply #2
Ok,  correct typo spotted. Will correct it soon.