diff options
author | Darkvater <darkvater@openttd.org> | 2006-12-05 09:19:14 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-12-05 09:19:14 +0000 |
commit | 032ec36bcc479ed22c70e708e75d6848a37c3443 (patch) | |
tree | 6c269146941c73b81c012b81d30d37e688309d36 /order_gui.c | |
parent | a39daa9e892bd2412fdac29a441ba3bc2b382ccc (diff) | |
download | openttd-032ec36bcc479ed22c70e708e75d6848a37c3443.tar.xz |
(svn r7366) -Fix: Out of bounds widget access when accessing orders window of other players.
Diffstat (limited to 'order_gui.c')
-rw-r--r-- | order_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |