You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Add templated version of ObjectDB::get_instance()
This commit is contained in:
@@ -1350,7 +1350,7 @@ void Thread::_start_func(void *ud) {
|
||||
target_callable.callp(nullptr, 0, ret, ce);
|
||||
// If script properly kept a reference to the thread, we should be able to re-reference it now
|
||||
// (well, or if the call failed, since we had to break chains anyway because the outcome isn't known upfront).
|
||||
t = Ref<Thread>(ObjectDB::get_instance(th_instance_id));
|
||||
t = ObjectDB::get_ref<Thread>(th_instance_id);
|
||||
if (t.is_valid()) {
|
||||
t->ret = ret;
|
||||
t->running.clear();
|
||||
|
||||
Reference in New Issue
Block a user