]> git.localhorst.tv Git - blank.git/blobdiff - src/model/shape.cpp
load models from assets
[blank.git] / src / model / shape.cpp
index 66eb25e99550d9a425701236eaa19cef264b1975..4943e6377c3525d0c21b0144f7a3384f74dd8f76 100644 (file)
@@ -108,7 +108,7 @@ void Shape::Read(TokenStreamReader &in) {
 
                } else {
                        // try to skip, might fail though
-                       while (in.Peek().type != Token::SEMICOLON) {
+                       while (in.HasMore() && in.Peek().type != Token::SEMICOLON) {
                                in.Next();
                        }
                }