summaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
Diffstat (limited to 'game')
-rw-r--r--game/geoData.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/game/geoData.cpp b/game/geoData.cpp
index d01b4d5..fb3cb15 100644
--- a/game/geoData.cpp
+++ b/game/geoData.cpp
@@ -600,7 +600,9 @@ GeoData::setHeights(const std::span<const GlobalPosition3D> triangleStrip, const
});
}
};
- surfaceStripWalk(surfaceStripWalk, findPoint(strip.front().centroid()));
+ for (const auto & triangle : strip) {
+ surfaceStripWalk(surfaceStripWalk, findPoint(triangle.centroid()));
+ }
updateAllVertexNormals(newOrChangedVerts);
generation++;