mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
protect against recursion bug
This commit is contained in:
parent
b976aa9ac7
commit
e8211cbd38
@ -248,6 +248,11 @@ get_top_category() {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
NotifyCategory *Notify::
|
||||
get_category(const string &basename, NotifyCategory *parent_category) {
|
||||
// We have to ensure that config_notify has been at least created
|
||||
// before we try to create any NotifyCategories, or we'll get an
|
||||
// infinite recursion problem. Calling this function is sufficient.
|
||||
config_notify.AmInitializing();
|
||||
|
||||
// The string should not contain colons.
|
||||
nassertr(basename.find(':') == string::npos, NULL);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user