Menu

#985 Not all property iterators in gldcore/object.c process parent class properties

Version 4.0 RC1
new
nobody
None
none
core
critical
defect
2016-08-10
2016-08-10
No

This can lead to missing values when dumps, saves, and other global actions are handled. The correct iterator is

for ( prop=obj->oclass->pmap; prop!=NULL; prop=(prop->next?prop->next:(prop->oclass->parent?prop->oclass->parent->pmap:NULL)) )
{
    // ...
}

Discussion