From e1b91c430be2a97c231978e86f6e0657a52d7d69 Mon Sep 17 00:00:00 2001 From: Hirek193 Date: Tue, 6 Oct 2026 01:55:29 +0200 Subject: [PATCH] fix(scenery): triangles node cut short by the end of data no longer hangs the loader --- scene/scenenode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene/scenenode.cpp b/scene/scenenode.cpp index 9f07a003..18f9e047 100644 --- a/scene/scenenode.cpp +++ b/scene/scenenode.cpp @@ -309,7 +309,8 @@ shape_node::import( cParser &Input, scene::node_data const &Nodedata ) { } token = Input.getToken(); - } while( token != "endtri" ); + } while( token != "endtri" + && false == token.empty() ); // data which ends without closing the node would otherwise keep the loop going forever return *this; }