News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

r2144 - last_month_bev is not initialized

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

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.


Warning: fopen(/home/sforum/public_html/attachments/1553_a9dad6f37d2ead30cb8f35714d278da62a7bd84d.dat_thumb.tmp): Failed to open stream: Permission denied in /home/sforum/public_html/Sources/Subs-Graphics.php on line 336

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.