invoke getters on tid temp variable to allow proper iteration over tid list.

This commit is contained in:
Mathieu Lacage
2008-02-22 00:12:47 +01:00
parent 6d05a9e061
commit 2aa6ff8d7d

View File

@@ -498,13 +498,13 @@ TypeId::LookupAttributeByName (std::string name, struct TypeId::AttributeInfo *i
TypeId nextTid = *this;
do {
tid = nextTid;
for (uint32_t i = 0; i < GetAttributeListN (); i++)
for (uint32_t i = 0; i < tid.GetAttributeListN (); i++)
{
std::string paramName = GetAttributeName (i);
std::string paramName = tid.GetAttributeName (i);
if (paramName == name)
{
info->accessor = GetAttributeAccessor (i);
info->flags = GetAttributeFlags (i);
info->accessor = tid.GetAttributeAccessor (i);
info->flags = tid.GetAttributeFlags (i);
info->initialValue = tid.GetAttributeInitialValue (i);
info->checker = tid.GetAttributeChecker (i);
return true;