GDScript: Fix native class not set with inheritance

This commit is contained in:
George Marques 2020-10-26 10:06:44 -03:00
parent a7d610db16
commit 8bcd345782
No known key found for this signature in database
GPG Key ID: 046BD46A3201E43D
1 changed files with 2 additions and 0 deletions

View File

@ -1963,6 +1963,8 @@ Error GDScriptCompiler::_parse_class_level(GDScript *p_script, const GDScriptPar
} }
p_script->member_indices = base->member_indices; p_script->member_indices = base->member_indices;
native = base->native;
p_script->native = native;
} break; } break;
default: { default: {
_set_error("Parser bug: invalid inheritance.", p_class); _set_error("Parser bug: invalid inheritance.", p_class);