summaryrefslogtreecommitdiff
path: root/order_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'order_gui.c')
-rw-r--r--order_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/order_gui.c b/order_gui.c
index 9ec762475..966a84839 100644
--- a/order_gui.c
+++ b/order_gui.c
@@ -52,7 +52,7 @@ static void DrawOrdersWindow(Window *w)
shared_orders = IsOrderListShared(v);
- if ((uint)v->num_orders + shared_orders <= (uint)WP(w,order_d).sel)
+ if ((uint)v->num_orders + (shared_orders?1:0) <= (uint)WP(w,order_d).sel)
SETBIT(w->disabled_state, 5); /* delete */
if (v->num_orders == 0)