Codechange: Skip non-water water region patches in neigbor search

(cherry picked from commit 8a1cea2ab6)
This commit is contained in:
Koen Bussemaker
2024-02-17 20:15:43 +01:00
committed by Jonathan G Rennison
parent a98a56669b
commit 69af0e8f26
3 changed files with 8 additions and 1 deletions

View File

@@ -103,6 +103,7 @@ private:
public:
void AddOrigin(const WaterRegionPatchDesc &water_region_patch)
{
if (water_region_patch.label == INVALID_WATER_REGION_PATCH) return;
if (!HasOrigin(water_region_patch)) m_origin_keys.push_back(CYapfRegionPatchNodeKey{ water_region_patch });
}