From f6285a659c0457b2b468d53885a583e126a07302 Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 24 Mar 2006 08:55:08 +0000 Subject: (svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the station from a tile --- aircraft_gui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'aircraft_gui.c') diff --git a/aircraft_gui.c b/aircraft_gui.c index 398bb1fc9..bed7ace18 100644 --- a/aircraft_gui.c +++ b/aircraft_gui.c @@ -4,6 +4,7 @@ #include "openttd.h" #include "debug.h" #include "functions.h" +#include "station_map.h" #include "table/sprites.h" #include "table/strings.h" #include "map.h" @@ -650,7 +651,7 @@ static void DrawAircraftDepotWindow(Window *w) } SetVScrollCount(w, (num + w->hscroll.cap - 1) / w->hscroll.cap); - SetDParam(0, _m[tile].m2); + SetDParam(0, GetStationIndex(tile)); DrawWindowWidgets(w); x = 2; -- cgit v1.2.3-54-g00ecf