1
0
Fork 0

(svn r7366) -Fix: Out of bounds widget access when accessing orders window of other players.

release/0.5
Darkvater 2006-12-05 09:19:14 +00:00
parent a39daa9e89
commit 032ec36bcc
1 changed files with 1 additions and 1 deletions

View File

@ -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) {