1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 18:39:10 +00:00

Codefix: Delete PersistentStorage when a town is deleted. (#12903)

This commit is contained in:
2024-08-19 08:18:01 +01:00
committed by GitHub
parent e4c04e86c0
commit 0f0f3d74ca

View File

@@ -148,6 +148,9 @@ Town::~Town()
}
/* Clear the persistent storage list. */
for (auto &psa : this->psa_list) {
delete psa;
}
this->psa_list.clear();
DeleteSubsidyWith(SourceType::Town, this->index);