Fix: NewGRF house class mappings were not reset between games. (#11279)
(cherry picked from commit 6643c010bd
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
1637f6f6b0
commit
89b84222d3
@@ -4452,6 +4452,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{});
|
||||
|
||||
|
Reference in New Issue
Block a user