useful assertion
This commit is contained in:
parent
725e82e6f4
commit
71e3ea4964
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue