diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-03-13 10:18:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-13 10:18:56 +0100 |
commit | e147be6031af3d13ed09fd76bdc34b3f1e8a444e (patch) | |
tree | 6323380be63b1b05a63909a1d98aedd1eddcdfb8 /modules/gdscript | |
parent | 951ecc4f79a760160bdc7adc3b0b40e9e4c6b82d (diff) | |
parent | e967a92c1b4521bd1bcec99d5787d90740395c74 (diff) |
Merge pull request #36723 from AndreaCatania/fix-rset
Fixed rset method for gdscript and visual script
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gdscript.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index d31823d632..9b9f38b9fc 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -715,8 +715,8 @@ StringName GDScript::get_rset_property(const uint16_t p_rset_member_id) const { } MultiplayerAPI::RPCMode GDScript::get_rset_mode_by_id(const uint16_t p_rset_member_id) const { - ERR_FAIL_COND_V(p_rset_member_id >= rpc_functions.size(), MultiplayerAPI::RPC_MODE_DISABLED); - return rpc_functions[p_rset_member_id].mode; + ERR_FAIL_COND_V(p_rset_member_id >= rpc_variables.size(), MultiplayerAPI::RPC_MODE_DISABLED); + return rpc_variables[p_rset_member_id].mode; } MultiplayerAPI::RPCMode GDScript::get_rset_mode(const StringName &p_variable) const { |