From 9e151cf54f7a522b0898802f656d85c58c8800c4 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Tue, 5 Dec 2006 09:19:14 +0000 Subject: (svn r7366) -Fix: Out of bounds widget access when accessing orders window of other players. --- order_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/order_gui.c b/order_gui.c index 0232fc49c..adcaadba0 100644 --- a/order_gui.c +++ b/order_gui.c @@ -86,12 +86,12 @@ static void DrawOrdersWindow(Window *w) /* Disable list of vehicles with the same shared orders if there is no list */ SetWindowWidgetDisabledState(w, 11, !shared_orders || v->orders == NULL); SetWindowWidgetDisabledState(w, 12, order == NULL); // Refit + HideWindowWidget(w, 12); // Refit } else { DisableWindowWidget(w, 10); } ShowWindowWidget(w, 9); // Unload - HideWindowWidget(w, 12); // Refit if (order != NULL) { switch (order->type) { -- cgit v1.2.3-70-g09d2