You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
[Core] Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable
This commit is contained in:
@@ -34,8 +34,8 @@
|
||||
#include "core/os/thread_safe.h"
|
||||
|
||||
void WorkerThreadPool::Task::free_template_userdata() {
|
||||
ERR_FAIL_COND(!template_userdata);
|
||||
ERR_FAIL_COND(native_func_userdata == nullptr);
|
||||
ERR_FAIL_NULL(template_userdata);
|
||||
ERR_FAIL_NULL(native_func_userdata);
|
||||
BaseTemplateUserdata *btu = (BaseTemplateUserdata *)native_func_userdata;
|
||||
memdelete(btu);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user