Browse Source

useful assertion

David Rose 20 years ago
parent
commit
71e3ea4964
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/dcparser/dcClass.cxx

+ 1 - 0
direct/src/dcparser/dcClass.cxx

@@ -289,6 +289,7 @@ get_num_inherited_fields() const {
     if (_inherited_fields.empty()) {
       ((DCClass *)this)->rebuild_inherited_fields();
     }
+    nassertr(!_inherited_fields.empty(), 0);
     return (int)_inherited_fields.size();
 
   } else {