Fix selected item in dropdown for conditional to test slot occupancy state
This commit is contained in:
@@ -1364,8 +1364,7 @@ public:
|
|||||||
switch (GetTraceRestrictTypeProperties(item).value_type) {
|
switch (GetTraceRestrictTypeProperties(item).value_type) {
|
||||||
case TRVT_SLOT_INDEX_INT: {
|
case TRVT_SLOT_INDEX_INT: {
|
||||||
int selected;
|
int selected;
|
||||||
DropDownList *dlist = GetSlotDropDownList(this->GetOwner(),
|
DropDownList *dlist = GetSlotDropDownList(this->GetOwner(), GetTraceRestrictValue(item), selected);
|
||||||
*(TraceRestrictProgram::InstructionAt(this->GetProgram()->items, this->selected_instruction - 1) + 1), selected);
|
|
||||||
if (dlist != NULL) ShowDropDownList(this, dlist, selected, TR_WIDGET_LEFT_AUX_DROPDOWN);
|
if (dlist != NULL) ShowDropDownList(this, dlist, selected, TR_WIDGET_LEFT_AUX_DROPDOWN);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user