summaryrefslogtreecommitdiffstats
path: root/modules/mono/class_db_api_json.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-09-26 17:52:43 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-09-26 17:52:43 +0200
commit7a4d55db5611435bf79a750204a84ca769b14ed9 (patch)
treee62fccf23a2f155d5c5799aebe5b0837e33c6377 /modules/mono/class_db_api_json.cpp
parent36945dad0730ee013547493df60c4c59567b4290 (diff)
parent517e9f8aefed8925c1b66932a0d3cb887e99d267 (diff)
downloadredot-engine-7a4d55db5611435bf79a750204a84ca769b14ed9.tar.gz
Merge pull request #81760 from AThousandShips/null_check_modules
[Modules] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
Diffstat (limited to 'modules/mono/class_db_api_json.cpp')
-rw-r--r--modules/mono/class_db_api_json.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/class_db_api_json.cpp b/modules/mono/class_db_api_json.cpp
index 733f1dbe34..c4aba577db 100644
--- a/modules/mono/class_db_api_json.cpp
+++ b/modules/mono/class_db_api_json.cpp
@@ -47,7 +47,7 @@ void class_db_api_to_json(const String &p_output_file, ClassDB::APIType p_api) {
for (const StringName &E : class_list) {
ClassDB::ClassInfo *t = ClassDB::classes.getptr(E);
- ERR_FAIL_COND(!t);
+ ERR_FAIL_NULL(t);
if (t->api != p_api || !t->exposed) {
continue;
}