mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 20:12:42 +00:00
(svn r26024) [1.3] -Backport: number of prerequisites for key handling fixes/improvements
This commit is contained in:
@@ -2588,7 +2588,7 @@ struct IndustryCargoesWindow : public Window {
|
||||
delete lst;
|
||||
break;
|
||||
}
|
||||
int selected = (this->ind_cargo >= NUM_INDUSTRYTYPES) ? this->ind_cargo - NUM_INDUSTRYTYPES : -1;
|
||||
int selected = (this->ind_cargo >= NUM_INDUSTRYTYPES) ? (int)(this->ind_cargo - NUM_INDUSTRYTYPES) : -1;
|
||||
ShowDropDownList(this, lst, selected, WID_IC_CARGO_DROPDOWN, 0, true);
|
||||
break;
|
||||
}
|
||||
@@ -2605,7 +2605,7 @@ struct IndustryCargoesWindow : public Window {
|
||||
delete lst;
|
||||
break;
|
||||
}
|
||||
int selected = (this->ind_cargo < NUM_INDUSTRYTYPES) ? this->ind_cargo : -1;
|
||||
int selected = (this->ind_cargo < NUM_INDUSTRYTYPES) ? (int)this->ind_cargo : -1;
|
||||
ShowDropDownList(this, lst, selected, WID_IC_IND_DROPDOWN, 0, true);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user