*** empty log message ***

This commit is contained in:
David Rose 2000-10-13 21:29:44 +00:00
parent 08c0c9fea2
commit 8fd084e497

View File

@ -138,7 +138,12 @@ DCField *DCClass::
get_inherited_field(int n) {
if (!_parents.empty()) {
// This won't work for multiple dclass inheritance.
n -= _parents.front()->get_num_inherited_fields();
int psize = _parents.front()->get_num_inherited_fields();
if (n < psize) {
return _parents.front()->get_inherited_field(n);
}
n -= psize;
}
return get_field(n);
}