Changeset - r20975:deac4fa0133a
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-11-22 21:42:47
rubidium@openttd.org
(svn r26049) -Codechange: remove some dead code as order can't be NULL there
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/order_gui.cpp
Show inline comments
 
@@ -1060,8 +1060,8 @@ public:
 
					}
 
					OrderConditionVariable ocv = order->GetConditionVariable();
 
					/* Set the strings for the dropdown boxes. */
 
					this->GetWidget<NWidgetCore>(WID_O_COND_VARIABLE)->widget_data   = STR_ORDER_CONDITIONAL_LOAD_PERCENTAGE + (order == NULL ? 0 : ocv);
 
					this->GetWidget<NWidgetCore>(WID_O_COND_COMPARATOR)->widget_data = _order_conditional_condition[order == NULL ? 0 : order->GetConditionComparator()];
 
					this->GetWidget<NWidgetCore>(WID_O_COND_VARIABLE)->widget_data   = STR_ORDER_CONDITIONAL_LOAD_PERCENTAGE + ocv;
 
					this->GetWidget<NWidgetCore>(WID_O_COND_COMPARATOR)->widget_data = _order_conditional_condition[order->GetConditionComparator()];
 
					this->SetWidgetDisabledState(WID_O_COND_COMPARATOR, ocv == OCV_UNCONDITIONALLY);
 
					this->SetWidgetDisabledState(WID_O_COND_VALUE, ocv == OCV_REQUIRES_SERVICE || ocv == OCV_UNCONDITIONALLY);
 
					break;
0 comments (0 inline, 0 general)