diff options
author | fonsinchen <fonsinchen@openttd.org> | 2013-08-10 12:47:24 +0000 |
---|---|---|
committer | fonsinchen <fonsinchen@openttd.org> | 2013-08-10 12:47:24 +0000 |
commit | 0baa72aff9737e17741b83c8a6d87891fb03bc0f (patch) | |
tree | cfb2f5ab859ce5cf7ebea2ef2724fe721466e213 /src/industry_gui.cpp | |
parent | fd16b0c65c1b65908f20527c010a83b6e7e4cf3b (diff) | |
download | openttd-0baa72aff9737e17741b83c8a6d87891fb03bc0f.tar.xz |
(svn r25714) -Fix: explicitly cast some things to silence warnings on GCC 4.0
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r-- | src/industry_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 4b5412d81..be2336dce 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -2583,7 +2583,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; } @@ -2600,7 +2600,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; } |