diff --git a/src/game/physics/holes/ground/collectable_sim_ground.cpp b/src/game/physics/holes/ground/collectable_sim_ground.cpp index b6d1a29..f7ae7f7 100644 --- a/src/game/physics/holes/ground/collectable_sim_ground.cpp +++ b/src/game/physics/holes/ground/collectable_sim_ground.cpp @@ -97,7 +97,8 @@ void CollectableSimGround::createSegment(float leftCorner, float rightCorner, { if (leftCorner > rightCorner) { - throw std::runtime_error("Left corner must be less than right corner"); + // Segment would have negative width, don't create it and leave empty instead + return; } if (segment == nullptr)