X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel%2Fshape.cpp;h=4943e6377c3525d0c21b0144f7a3384f74dd8f76;hb=7e782291e0ce39eb2d4e8c1df28f682c313e6f8d;hp=66eb25e99550d9a425701236eaa19cef264b1975;hpb=ba55bf4293f3abc742eef710545a4b207ba2c820;p=blank.git diff --git a/src/model/shape.cpp b/src/model/shape.cpp index 66eb25e..4943e63 100644 --- a/src/model/shape.cpp +++ b/src/model/shape.cpp @@ -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(); } }