X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fobject.cpp;h=bd899961030095439688bf3bdc866691cfccb088;hb=b250a711295f5ba00114f11a5b1c855eebe08d26;hp=964099e51e4022c09335c16b7ca023d491de7c26;hpb=0c731643d6363eb4c492e836ffb919cb7c0a3035;p=libs%2Fgl.git diff --git a/source/object.cpp b/source/object.cpp index 964099e5..bd899961 100644 --- a/source/object.cpp +++ b/source/object.cpp @@ -32,7 +32,7 @@ Object::~Object() void Object::set_mesh(unsigned i, const Mesh *m) { if(i>meshes.size()) - throw invalid_argument("Object::set_mesh"); + throw out_of_range("Object::set_mesh"); if(i==meshes.size()) meshes.push_back(m); @@ -144,7 +144,7 @@ void Object::Loader::mesh_inline() void Object::Loader::mesh_inline_lod(unsigned l) { if(l>obj.meshes.size()) - throw invalid_argument("Object::Loader::mesh_inline_lod"); + throw out_of_range("Object::Loader::mesh_inline_lod"); RefPtr msh = new Mesh; load_sub(*msh);