diff options
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); |