summaryrefslogtreecommitdiff
path: root/game/geoData.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/geoData.cpp')
-rw-r--r--game/geoData.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/geoData.cpp b/game/geoData.cpp
index d8caff7..9516a95 100644
--- a/game/geoData.cpp
+++ b/game/geoData.cpp
@@ -545,8 +545,8 @@ GeoData::setHeights(const std::span<const GlobalPosition3D> triangleStrip, const
triangle++;
};
std::ranges::for_each(newVerts | std::views::adjacent<3>, doBoundary);
- doBoundaryPart(*++newVerts.begin(), newVerts.front(), *strip.rbegin());
- doBoundaryPart(*++newVerts.rbegin(), newVerts.back(), *strip.rbegin());
+ doBoundaryPart(*++newVerts.begin(), newVerts.front(), strip.front());
+ doBoundaryPart(*++newVerts.rbegin(), newVerts.back(), strip.back());
std::set<HalfedgeHandle> done;
std::set<HalfedgeHandle> todo;