diff options
author | Darkvater <darkvater@openttd.org> | 2006-11-11 09:47:44 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-11-11 09:47:44 +0000 |
commit | 21db9ebb8e5692245e1e6d68a045649f6a37166a (patch) | |
tree | 9f6f4d24e777d7d99f711074a3a0df0780a58727 /depot_gui.c | |
parent | d50f6c8a8c367ebf2ef0c1a1db14d64366b2243b (diff) | |
download | openttd-21db9ebb8e5692245e1e6d68a045649f6a37166a.tar.xz |
(svn r7129) -Codechange: Get rid of a global variable that only sets a window's number.
Diffstat (limited to 'depot_gui.c')
-rw-r--r-- | depot_gui.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/depot_gui.c b/depot_gui.c index 3117922a9..e7b7fbb1c 100644 --- a/depot_gui.c +++ b/depot_gui.c @@ -221,10 +221,7 @@ static const WindowDesc _depot_sell_all_desc = { static void ShowDepotSellAllWindow(TileIndex tile, byte type) { - Window *w; - - _alloc_wnd_parent_num = tile; - w = AllocateWindowDescFront(&_depot_sell_all_desc, tile); + Window *w = AllocateWindowDescFront(&_depot_sell_all_desc, tile); if (w != NULL) { w->caption_color = GetTileOwner(tile); |