diff src/depot_gui.cpp @ 12460:4acae7d6f5ed draft

(svn r16894) -Codechange: Add [Specialised]Vehicle::Last().
author frosch <frosch@openttd.org>
date Mon, 20 Jul 2009 19:58:33 +0000
parents af266072d46c
children 37dff9994e71
line wrap: on
line diff
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -151,7 +151,7 @@
 	if (v == wagon) return;
 
 	if (wagon == NULL) {
-		if (head != NULL) wagon = GetLastVehicleInChain(head);
+		if (head != NULL) wagon = head->Last();
 	} else  {
 		wagon = wagon->Previous();
 		if (wagon == NULL) return;