From c8500ee399be8f67f5339ccecfee4a3e61f89af4 Mon Sep 17 00:00:00 2001 From: dP Date: Thu, 9 Jul 2020 10:59:50 +0300 Subject: [PATCH] Don't memset game settings --- src/fios_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fios_gui.cpp b/src/fios_gui.cpp index 9f8b45413f..bd50810e88 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 = {}; // CM memset(&this->settings, 0, sizeof(this->settings)); for (auto &pair : this->companies) { delete pair.second;