From 3070f18c24133f546a7f2866daaa9a24ee912224 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 19 Feb 2014 08:38:57 +0000 Subject: [PATCH] Add assertion in a case where I've seen an occasional crash --- dtool/src/interrogate/interrogateBuilder.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dtool/src/interrogate/interrogateBuilder.cxx b/dtool/src/interrogate/interrogateBuilder.cxx index e98ef7fc87..3624de5352 100644 --- a/dtool/src/interrogate/interrogateBuilder.cxx +++ b/dtool/src/interrogate/interrogateBuilder.cxx @@ -1679,6 +1679,10 @@ get_function(CPPInstance *function, string description, InterrogateFunction &ifunction = 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; // Also, make sure this particular signature is defined.