- {
- for(TypeList::const_iterator j=fallback->types.begin(); j!=fallback->types.end(); ++j)
- if((*j)->is_same_type(*type))
- {
- if(fallback->get_status(name, **j))
- return fallback->get_var(name, *j);
- break;
- }
- }
+ if(CollectionItemTypeBase *fb_type = fallback->get_type(*type))
+ if(fallback->get_status(name, *fb_type))
+ return fallback->get_var(name, fb_type);