X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel%2Fshape.cpp;h=a5e728a398777d744935ee5a6c2f3e2863c12fff;hb=e4a1425dccd0ba9b106e415dd02809f4308a85ee;hp=66eb25e99550d9a425701236eaa19cef264b1975;hpb=ba55bf4293f3abc742eef710545a4b207ba2c820;p=blank.git diff --git a/src/model/shape.cpp b/src/model/shape.cpp index 66eb25e..a5e728a 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(); } } @@ -187,7 +187,7 @@ size_t Shape::OutlineIndexCount() const noexcept { } } -void Shape::Outline(OutlineMesh::Buffer &out) const { +void Shape::Outline(PrimitiveMesh::Buffer &out) const { if (bounds) { bounds->Outline(out); }