Merge pull request #63583 from AntonioDell/bugfix/63455
This commit is contained in:
commit
553ff8414b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user