Fix: NewGRF house class mappings were not reset between games. (#11279)

This commit is contained in:
2023-09-10 18:55:37 +01:00
committed by GitHub
parent 1c620b349f
commit 6643c010bd
3 changed files with 9 additions and 1 deletions

View File

@@ -3842,6 +3842,8 @@ HouseSpec _house_specs[NUM_HOUSES];
void ResetHouses()
{
ResetHouseClassIDs();
auto insert = std::copy(std::begin(_original_house_specs), std::end(_original_house_specs), std::begin(_house_specs));
std::fill(insert, std::end(_house_specs), HouseSpec{});