diff options
Diffstat (limited to 'src/fios_gui.cpp')
-rw-r--r-- | src/fios_gui.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fios_gui.cpp b/src/fios_gui.cpp index 6eac9315e..1a8b49935 100644 --- a/src/fios_gui.cpp +++ b/src/fios_gui.cpp @@ -567,8 +567,7 @@ public: } if (_saveload_mode == SLD_SAVE_GAME || _saveload_mode == SLD_SAVE_SCENARIO || _saveload_mode == SLD_SAVE_HEIGHTMAP) { /* Copy clicked name to editbox */ - ttd_strlcpy(this->text.buf, file->title, this->text.max_bytes); - this->text.UpdateSize(); + this->text.Assign(file->title); this->SetWidgetDirty(WID_SL_SAVE_OSK_TITLE); } } else if (!_load_check_data.HasErrors()) { |