diff options
Diffstat (limited to 'src/date_gui.cpp')
-rw-r--r-- | src/date_gui.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/date_gui.cpp b/src/date_gui.cpp index 3162a4ef9..b2421556c 100644 --- a/src/date_gui.cpp +++ b/src/date_gui.cpp @@ -117,10 +117,8 @@ struct SetDateWindow : Window { break; case WID_SD_YEAR: - for (Year i = this->min_year; i <= this->max_year; i++) { - SetDParam(0, i); - d = maxdim(d, GetStringBoundingBox(STR_JUST_INT)); - } + SetDParamMaxValue(0, this->max_year); + d = maxdim(d, GetStringBoundingBox(STR_JUST_INT)); break; } |