mirror of
https://github.com/panda3d/panda3d.git
synced 2026-04-30 11:40:47 -05:00
prevent crash, return sensible value from find_type()
This commit is contained in:
@@ -229,7 +229,7 @@ TypeHandle TypeRegistry::
|
||||
find_type(const string &name) const {
|
||||
_lock->lock();
|
||||
|
||||
TypeHandle handle;
|
||||
TypeHandle handle = TypeHandle::none();
|
||||
NameRegistry::const_iterator ri;
|
||||
ri = _name_registry.find(name);
|
||||
if (ri != _name_registry.end()) {
|
||||
|
||||
Reference in New Issue
Block a user