From ea0f4757c6d6ad0341fcffaa70c933982becd2f7 Mon Sep 17 00:00:00 2001 From: matthijs Date: Mon, 23 May 2005 19:00:16 +0000 Subject: (svn r2363) - Codechange: [NPF] Removed caching the endnode check. The code for this was buggy, fundamentally flawed and barely useful. (Hackykid) --- order_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'order_gui.c') 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) -- cgit v1.2.3-54-g00ecf