The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: z9999 on August 05, 2009, 07:17:27 pm

Title: [bug r2610] Remove a stop connected to factry causes to crash
Post by: z9999 on August 05, 2009, 07:17:27 pm
r2610
If show station coverage is ON and you rotated a map, removing a stop connected to factry will cause to crash.

How to reproduce:
1. Set show station coverage ON.
2. Build a stop which covers only one tile of coal mine.
3. Rotate a map.
4. Remove a stop.

Result:
Crash.
Title: Re: [bug r2610] Remove a stop connected to factry causes to crash
Post by: Amelek on August 05, 2009, 09:40:21 pm
it's not really related to station coverage.

Generally, stations are linked to factory's 0,0 position, even if it isn't in their range. However, during rotate, station is rebound to new factory's 0,0 position, but not freed from old one. Patch attached, hope it solves issue.
Title: Re: [bug r2610] Remove a stop connected to factry causes to crash
Post by: prissi on September 05, 2009, 08:23:17 pm
Seems to fix it. Thank you, in trunk!