The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: z9999 on August 27, 2009, 01:17:06 PM

Title: [patch fix] Revise for r2610 fix
Post by: z9999 on August 27, 2009, 01:17:06 PM
Sorry, my fix_stop_moving_r2608.patch was wrong.
It causes crash with waypoint.
This will fix the problem.


Index: simwerkz.cc
===================================================================
--- simwerkz.cc (r 2615)
+++ simwerkz.cc (copy)
@@ -3743,7 +3743,9 @@
if(updated) {
fpl->cleanup();
// remove line from old stop is needed at here
- last_halt->remove_line(line);
+ if(last_halt.is_bound()) {
+ last_halt->remove_line(line);
+ }
sp->simlinemgmt.update_line(line);
}
}



Title: Re: [patch fix] Revise for r2610 fix
Post by: Dwachs on August 27, 2009, 06:44:29 PM
in rev 2617. thank you!