summaryrefslogtreecommitdiff
path: root/order_gui.c
diff options
context:
space:
mode:
authormatthijs <matthijs@openttd.org>2005-05-23 19:00:16 +0000
committermatthijs <matthijs@openttd.org>2005-05-23 19:00:16 +0000
commitea0f4757c6d6ad0341fcffaa70c933982becd2f7 (patch)
treeb3cb09e2076d5931bdacfa8040e1bdb1314d8e01 /order_gui.c
parent1684e0d0bf753217146ab556c376a9a9933161e7 (diff)
downloadopenttd-ea0f4757c6d6ad0341fcffaa70c933982becd2f7.tar.xz
(svn r2363) - Codechange: [NPF] Removed caching the endnode check. The code for this was buggy, fundamentally flawed and barely useful. (Hackykid)
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)