Codechange: Use unique_ptr for fios company properties.

This is the data used to show company names in the saveload window.
This commit is contained in:
Peter Nelson
2023-05-18 08:38:35 +01:00
committed by PeterN
parent bf8f24f9a8
commit 91e140c722
3 changed files with 4 additions and 9 deletions

View File

@@ -55,9 +55,6 @@ void LoadCheckData::Clear()
this->current_date = 0;
this->settings = {};
for (auto &pair : this->companies) {
delete pair.second;
}
companies.clear();
this->gamelog.Reset();