Changeset - r5242:5c27f3391b8b
[Not reviewed]
master
0 1 0
Darkvater - 17 years ago 2006-12-05 09:19:14
darkvater@openttd.org
(svn r7366) -Fix: Out of bounds widget access when accessing orders window of other players.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
order_gui.c
Show inline comments
 
@@ -83,18 +83,18 @@ static void DrawOrdersWindow(Window *w)
 
		SetWindowWidgetDisabledState(w,  8, order == NULL); // full load
 
		SetWindowWidgetDisabledState(w,  9, order == NULL); // unload
 
		SetWindowWidgetDisabledState(w, 10, order == NULL); // transfer
 
		/* 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) {
 
			case OT_GOTO_STATION: break;
 

	
 
			case OT_GOTO_DEPOT:
0 comments (0 inline, 0 general)