(svn r9756) -Fix [FS#755]: LeaveStation wasn't always called when a station was left.
authorrubidium
Sun, 29 Apr 2007 22:51:12 +0000
changeset 7050 6120cd416583
parent 7049 01825af2ce90
child 7051 d0e0ab1460f0
(svn r9756) -Fix [FS#755]: LeaveStation wasn't always called when a station was left.
src/train_cmd.cpp
--- a/src/train_cmd.cpp	Sun Apr 29 22:33:51 2007 +0000
+++ b/src/train_cmd.cpp	Sun Apr 29 22:51:12 2007 +0000
@@ -3448,6 +3448,8 @@
 		return;
 	}
 
+	if (v->current_order.type == OT_LOADING) v->LeaveStation();
+
 	v->current_order.type = OT_GOTO_DEPOT;
 	v->current_order.flags = OF_NON_STOP;
 	v->current_order.dest = depot->index;