diff options
author | frosch <frosch@openttd.org> | 2010-10-16 20:34:43 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-10-16 20:34:43 +0000 |
commit | 98250ad8da83fe6f842437bb614df28a1fe217c6 (patch) | |
tree | bfa52c0de54fa6c0a8c46d8b576555408ebcdc68 /src/newgrf_gui.cpp | |
parent | 82d4ffacff3398b44b2b16466f1305d607f0f57f (diff) | |
download | openttd-98250ad8da83fe6f842437bb614df28a1fe217c6.tar.xz |
(svn r20951) -Codechange: Add SmallMap::Contains() and use it.
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r-- | src/newgrf_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 2ec921d08..0e7934b68 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -258,7 +258,7 @@ struct NewGRFParametersWindow : public Window { DrawArrowButtons(buttons_left, y + 2, COLOUR_YELLOW, (this->clicked_button == i) ? 1 + (this->clicked_increase != rtl) : 0, current_value > par_info->min_value, current_value < par_info->max_value); SetDParam(2, STR_JUST_INT); SetDParam(3, current_value); - if (par_info->value_names.Find(current_value) != par_info->value_names.End()) { + if (par_info->value_names.Contains(current_value)) { const char *label = GetGRFStringFromGRFText(par_info->value_names.Find(current_value)->second); if (label != NULL) { SetDParam(2, STR_JUST_RAW_STRING); |