diff options
author | frosch <frosch@openttd.org> | 2012-11-14 22:50:17 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-11-14 22:50:17 +0000 |
commit | f6d4200f86e93828a4a58a957d6ae7d9d5497a86 (patch) | |
tree | 2d940ae42f1f273a19c2c33f2858feab9122d9c2 /src/genworld_gui.cpp | |
parent | 0ea21523556a345d38933ee2dd6dcdca0ec08514 (diff) | |
download | openttd-f6d4200f86e93828a4a58a957d6ae7d9d5497a86.tar.xz |
(svn r24738) -Codechange: Remove Textbuf::Initialize in favour of a constructor.
Diffstat (limited to 'src/genworld_gui.cpp')
-rw-r--r-- | src/genworld_gui.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp index 81ffd6a86..1e6914696 100644 --- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -316,9 +316,7 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow { this->LowerWidget(_settings_newgame.game_creation.landscape + WID_GL_TEMPERATE); - /* snprintf() always outputs trailing '\0', so whole buffer can be used */ - snprintf(this->edit_str_buf, this->edit_str_size, "%u", _settings_newgame.game_creation.generation_seed); - this->text.Initialize(this->edit_str_buf, this->edit_str_size); + this->text.Print("%u", _settings_newgame.game_creation.generation_seed); this->caption = STR_NULL; this->afilter = CS_NUMERAL; |