1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 09:29:10 +00:00

Fix #12643: _is_water_region_valid is not cleared/reset in AllocateWaterRegions

This commit is contained in:
Koen Bussemaker
2024-05-09 09:49:18 +02:00
committed by Kuhnovic
parent ec61951512
commit 59ac27f385

View File

@@ -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());