17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 00:29:19 +02:00

fix(scenery): triangles node cut short by the end of data no longer hangs the loader

This commit is contained in:
2026-10-06 01:55:29 +02:00
parent f7aea3c0a8
commit e1b91c430b

View File

@@ -309,7 +309,8 @@ shape_node::import( cParser &Input, scene::node_data const &Nodedata ) {
}
token = Input.getToken<std::string>();
} 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;
}