mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
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…
x
Reference in New Issue
Block a user