summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vehicle_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c
index f9c977f84..5d17c2276 100644
--- a/vehicle_gui.c
+++ b/vehicle_gui.c
@@ -1576,7 +1576,7 @@ static void DrawVehicleListWindow(Window *w)
}
if (owner == _local_player) {
- bool list_isempty vl->l.list_length == 0;
+ bool list_isempty = vl->l.list_length == 0;
SetWindowWidgetDisabledState(w, VLW_WIDGET_SEND_TO_DEPOT, list_isempty);
SetWindowWidgetDisabledState(w, VLW_WIDGET_AUTOREPLACE, list_isempty);