summaryrefslogtreecommitdiff
path: root/depot_gui.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-12-05 22:59:42 +0000
committerbjarni <bjarni@openttd.org>2006-12-05 22:59:42 +0000
commit4adc6ba4f853d1b11994948f2653ddb618da36bb (patch)
tree7833c716fc42b444f89413faa48f18b9ce21ecea /depot_gui.c
parent686a0d7750405d10088a23732f33359728039aa5 (diff)
downloadopenttd-4adc6ba4f853d1b11994948f2653ddb618da36bb.tar.xz
(svn r7386) -Codechange r7385: moved deletion of the vehicle highlight from DeleteVehicle to the sell commands as they are not called as often
Also added a return to the window loop prevent looking at the rest of the windows once the right depot window is found
Diffstat (limited to 'depot_gui.c')
-rw-r--r--depot_gui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/depot_gui.c b/depot_gui.c
index c0ee00ddc..7bb94e3e6 100644
--- a/depot_gui.c
+++ b/depot_gui.c
@@ -1049,5 +1049,6 @@ void DeleteDepotHighlightOfVehicle(const Vehicle *v)
WP(w, depot_d).sel = INVALID_VEHICLE;
ResetObjectToPlace();
}
+ return;
}
}