X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fvertexformat.cpp;h=e3f8bf97a5c49e5fe245975d09308de0e57295c9;hb=b250a711295f5ba00114f11a5b1c855eebe08d26;hp=ed2b04b8dbd0784c2bf6bc67c7a10698000a8464;hpb=2e7f19b895424c3a77940e648639f8df2b395d0f;p=libs%2Fgl.git diff --git a/source/vertexformat.cpp b/source/vertexformat.cpp index ed2b04b8..e3f8bf97 100644 --- a/source/vertexformat.cpp +++ b/source/vertexformat.cpp @@ -114,7 +114,7 @@ VertexFormat operator,(const VertexFormat &f, unsigned i) VertexFormat r = f; unsigned char *c = r.data+r.data[0]; if((*c0) || (*c=8) || i>=53) - throw out_of_range("VertexFormat::operator,"); + throw invalid_argument("VertexFormat::operator,"); *c += i*4; return r;