1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fix some warnings raised by GCC-11.1

This commit is contained in:
jfons
2021-05-25 17:03:12 +02:00
parent f164c00a94
commit f8e34209af
5 changed files with 32 additions and 26 deletions

View File

@@ -2211,7 +2211,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;
}
}