summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build_vehicle_gui.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/build_vehicle_gui.c b/build_vehicle_gui.c
index 4d7f7542a..b1c82c95f 100644
--- a/build_vehicle_gui.c
+++ b/build_vehicle_gui.c
@@ -335,8 +335,6 @@ static void DrawBuildAircraftWindow(Window *w)
SetWindowWidgetDisabledState(w, BUILD_VEHICLE_WIDGET_BUILD, w->window_number == 0);
- GenerateBuildList(w);
-
if (bv->sel_engine != INVALID_ENGINE) {
int i;
bool found = false;
@@ -429,6 +427,7 @@ static void NewAircraftWndProc(Window *w, WindowEvent *e)
switch (e->event) {
case WE_INVALIDATE_DATA:
+ GenerateBuildList(w);
SetWindowDirty(w);
break;