News:

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

[patch fix] Revise for r2610 fix

Started by z9999, August 27, 2009, 01:17:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

z9999

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);
}
}




Dwachs

Parsley, sage, rosemary, and maggikraut.