diff options
author | rubidium42 <rubidium@openttd.org> | 2021-04-27 20:26:56 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-13 23:13:17 +0200 |
commit | c73d64adf984036a99d6974b130eda65dfc18c6c (patch) | |
tree | 05390f3269bf3279d51b290cde02cf17c395a626 /src/fios_gui.cpp | |
parent | f219354f891c45dcefad2dd0a2f1fd92b07e4ba5 (diff) | |
download | openttd-c73d64adf984036a99d6974b130eda65dfc18c6c.tar.xz |
Codechange: move passwords in settings to std::string
Diffstat (limited to 'src/fios_gui.cpp')
-rw-r--r-- | src/fios_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fios_gui.cpp b/src/fios_gui.cpp index e4de1acaa..40a082d64 100644 --- a/src/fios_gui.cpp +++ b/src/fios_gui.cpp @@ -53,7 +53,7 @@ void LoadCheckData::Clear() this->map_size_x = this->map_size_y = 256; // Default for old savegames which do not store mapsize. this->current_date = 0; - memset(&this->settings, 0, sizeof(this->settings)); + this->settings = {}; for (auto &pair : this->companies) { delete pair.second; |