The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: z9999 on November 27, 2008, 09:33:17 pm

Title: r2144 - last_month_bev is not initialized
Post by: z9999 on November 27, 2008, 09:33:17 pm
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
Title: Re: r2144 - last_month_bev is not initialized
Post by: z9999 on November 28, 2008, 06:14:19 am
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];

Title: Re: r2144 - last_month_bev is not initialized
Post by: prissi on November 28, 2008, 08:23:12 am
Ok,  correct typo spotted. Will correct it soon.