Browse Source

*** empty log message ***

David Rose 25 năm trước cách đây
mục cha
commit
08c0c9fea2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      direct/src/dcparse/dcClass.cxx

+ 1 - 1
direct/src/dcparse/dcClass.cxx

@@ -120,7 +120,7 @@ int DCClass::
 get_num_inherited_fields() {
 get_num_inherited_fields() {
   if (!_parents.empty()) {
   if (!_parents.empty()) {
     // This won't work for multiple dclass inheritance.
     // This won't work for multiple dclass inheritance.
-    return _parents.front()->get_num_fields() + get_num_fields();
+    return _parents.front()->get_num_inherited_fields() + get_num_fields();
   }
   }
   return get_num_fields();
   return get_num_fields();
 }
 }