Merge pull request #63583 from AntonioDell/bugfix/63455

This commit is contained in:
Rémi Verschelde 2022-07-28 19:31:54 +02:00 committed by GitHub
commit 553ff8414b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1636,8 +1636,6 @@ const Vector<Multiplayer::RPCConfig> GDScriptInstance::get_rpc_methods() const {
void GDScriptInstance::reload_members() {
#ifdef DEBUG_ENABLED
members.resize(script->member_indices.size()); //resize
Vector<Variant> new_members;
new_members.resize(script->member_indices.size());
@ -1649,6 +1647,8 @@ void GDScriptInstance::reload_members() {
}
}
members.resize(new_members.size()); //resize
//apply
members = new_members;