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, 4 insertions, 0 deletions
diff --git a/game/geoData.cpp b/game/geoData.cpp
index 8c635a0..9a08a89 100644
--- a/game/geoData.cpp
+++ b/game/geoData.cpp
@@ -381,6 +381,10 @@ GeoData::triangleContainsTriangle(const Triangle<2> & a, const Triangle<2> & b)
void
GeoData::setHeights(const std::span<const GlobalPosition3D> triangleStrip)
{
+ if (triangleStrip.size() < 3) {
+ return;
+ }
+
// Create new vertices
std::vector<VertexHandle> newVerts;
newVerts.reserve(newVerts.size());