(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 6554 c780a3382f38
parent 6553 976a684212ad
child 6555 418ca90354d4
(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;