diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-06-01 10:47:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 10:47:37 +0200 |
commit | 59b524ae4c1d81150d88fa9618f8f33c1cf6b6ea (patch) | |
tree | 50530c40716fa3e5a45c403f106b407e120757f1 /modules | |
parent | 5ec8920cde0cf5aafda59dfda335772acf3fcd15 (diff) | |
parent | f8e34209afbf5c862c9638c8029dbfc1be67a30c (diff) |
Merge pull request #49067 from JFonS/fix_gcc_warnings
Fix some warnings raised by GCC-11.1
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_compiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_compiler.cpp b/modules/gdscript/gdscript_compiler.cpp index 179316b97e..c7ca9449c2 100644 --- a/modules/gdscript/gdscript_compiler.cpp +++ b/modules/gdscript/gdscript_compiler.cpp @@ -2223,7 +2223,7 @@ Error GDScriptCompiler::_parse_class_level(GDScript *p_script, const GDScriptPar if (err) { return err; } - if (base.is_null() && !base->is_valid()) { + if (base.is_null() || !base->is_valid()) { return ERR_COMPILATION_FAILED; } } |