mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fix bam crash some more
This commit is contained in:
parent
01f9bc890f
commit
f80d624573
@ -410,6 +410,13 @@ change_pointer(const TypedWritable *orig_pointer, const TypedWritable *new_point
|
||||
|
||||
_created_objs_by_pointer.erase(ci);
|
||||
|
||||
// Also change the pointer on the finalize_list.
|
||||
Finalize::iterator fi = _finalize_list.find((TypedWritable *)orig_pointer);
|
||||
if (fi != _finalize_list.end()) {
|
||||
_finalize_list.insert((TypedWritable *)new_pointer);
|
||||
_finalize_list.erase(fi);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user