git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3718
ffa7fe5e-494d-0410-b361-
a75ebd5db220
while (attr->u.item_types[i++] != type_none);
return i*sizeof(enum item_type);
}
+ if (attr->type >= attr_type_item_type_begin && attr->type <= attr_type_item_type_end)
+ return sizeof(enum item_type);
if (attr->type == attr_attr_types) {
int i=0;
while (attr->u.attr_types[i++] != attr_none);
ATTR(speed_dep)
ATTR2(0x000dffff,type_group_end)
ATTR2(0x000e0000,type_item_type_begin)
+ATTR(alt_item_type)
ATTR2(0x000effff,type_item_type_end)