summaryrefslogtreecommitdiff
path: root/src/depot_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r--src/depot_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index 9ec0f0c9f..842d18203 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -365,7 +365,7 @@ struct DepotWindow : Window {
SetDParam(0, depot->town_index);
}
- DrawWindowWidgets(w);
+ w->DrawWidgets();
num = this->vscroll.pos * boxes_in_each_row;
maxval = min(this->engine_count, num + (rows_in_display * boxes_in_each_row));