]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pose.cpp
Exception fixes
[libs/gl.git] / source / pose.cpp
index 4d58939775b592ffa37366ce7aa75996116795e8..63346b08fb6944f33ded13f5c9c8f5c5731128f8 100644 (file)
@@ -68,7 +68,7 @@ void Pose::Loader::armature(const string &n)
 void Pose::Loader::link(const string &n)
 {
        if(!obj.armature)
-               error("Armature must be specified first");
+               throw logic_error("Armature must be specified first");
        LinkLoader ldr(obj, obj.armature->get_link(n).get_index());
        load_sub_with(ldr);
 }