X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Farmature.cpp;h=6e921e3f8e9ea95246b8dae655ba54f701d0689d;hb=d3813a0ab6ee2f8b9af775c28b51b512abe6cd09;hp=887d974a025a59827f83ed21219b58e2f5b79f4b;hpb=b250a711295f5ba00114f11a5b1c855eebe08d26;p=libs%2Fgl.git
diff --git a/source/armature.cpp b/source/armature.cpp
index 887d974a..6e921e3f 100644
--- a/source/armature.cpp
+++ b/source/armature.cpp
@@ -14,7 +14,7 @@ Armature::Link &Armature::add_link()
const Armature::Link &Armature::get_link(unsigned index) const
{
- for(list::const_iterator i=links.begin(); i!=links.end(); ++i)
+ for(vector::const_iterator i=links.begin(); i!=links.end(); ++i)
if(i->get_index()==index)
return *i;
throw key_error(typeid(list));
@@ -22,7 +22,7 @@ const Armature::Link &Armature::get_link(unsigned index) const
const Armature::Link &Armature::get_link(const string &name) const
{
- for(list::const_iterator i=links.begin(); i!=links.end(); ++i)
+ for(vector::const_iterator i=links.begin(); i!=links.end(); ++i)
if(i->get_name()==name)
return *i;
throw key_error(typeid(list));
@@ -31,7 +31,7 @@ const Armature::Link &Armature::get_link(const string &name) const
unsigned Armature::get_max_link_index() const
{
unsigned max_index = 0;
- for(list::const_iterator i=links.begin(); i!=links.end(); ++i)
+ for(vector::const_iterator i=links.begin(); i!=links.end(); ++i)
max_index = max(max_index, i->get_index());
return max_index;
}