mirror of https://github.com/OpenTTD/OpenTTD.git
Fix #12643: _is_water_region_valid is not cleared/reset in AllocateWaterRegions
This commit is contained in:
parent
ec61951512
commit
59ac27f385
|
@ -405,6 +405,7 @@ void AllocateWaterRegions()
|
|||
_water_regions.clear();
|
||||
_water_regions.reserve(number_of_regions);
|
||||
|
||||
_is_water_region_valid.clear();
|
||||
_is_water_region_valid.resize(number_of_regions, false);
|
||||
|
||||
Debug(map, 2, "Allocating {} x {} water regions", GetWaterRegionMapSizeX(), GetWaterRegionMapSizeY());
|
||||
|
|
Loading…
Reference in New Issue