diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-09 15:37:14 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-09 15:37:14 +0200 |
commit | a1d7c62df7bfe52915336f83e4ca71d510bf3baf (patch) | |
tree | 2a409a0ba9235f8334e23222cc66bd5d0f08e32c /modules/gdscript/gdscript_parser.cpp | |
parent | 336260b7b3eacc979fe0a891d1668e360d705781 (diff) | |
parent | f18aa00e8505439c1afc3dc0eb309429a88cf4de (diff) | |
download | redot-engine-a1d7c62df7bfe52915336f83e4ca71d510bf3baf.tar.gz |
Merge pull request #83003 from AThousandShips/null_check_extra
Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 057c2b49ab..2f0aa010a4 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -5410,7 +5410,7 @@ void GDScriptParser::TreePrinter::print_while(WhileNode *p_while) { } void GDScriptParser::TreePrinter::print_tree(const GDScriptParser &p_parser) { - ERR_FAIL_COND_MSG(p_parser.get_tree() == nullptr, "Parse the code before printing the parse tree."); + ERR_FAIL_NULL_MSG(p_parser.get_tree(), "Parse the code before printing the parse tree."); if (p_parser.is_tool()) { push_line("@tool"); |