mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Add assertion in a case where I've seen an occasional crash
This commit is contained in:
parent
bf4221da1e
commit
3070f18c24
@ -1679,6 +1679,10 @@ get_function(CPPInstance *function, string description,
|
|||||||
InterrogateFunction &ifunction =
|
InterrogateFunction &ifunction =
|
||||||
InterrogateDatabase::get_ptr()->update_function(index);
|
InterrogateDatabase::get_ptr()->update_function(index);
|
||||||
|
|
||||||
|
// Not 100% sure why, but there's a case where this happens,
|
||||||
|
// in a case where a typedef shadowed an actual type. ~rdb
|
||||||
|
nassertr(&ifunction != NULL, 0);
|
||||||
|
|
||||||
ifunction._flags |= flags;
|
ifunction._flags |= flags;
|
||||||
|
|
||||||
// Also, make sure this particular signature is defined.
|
// Also, make sure this particular signature is defined.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user