diff --git a/Assets/Mirror/Editor/Weaver/Processors/RpcProcessor.cs b/Assets/Mirror/Editor/Weaver/Processors/RpcProcessor.cs index 523d41642..e2b7c84d5 100644 --- a/Assets/Mirror/Editor/Weaver/Processors/RpcProcessor.cs +++ b/Assets/Mirror/Editor/Weaver/Processors/RpcProcessor.cs @@ -65,7 +65,7 @@ public static MethodDefinition ProcessRpcCall(TypeDefinition td, MethodDefinitio if (!NetworkBehaviourProcessor.WriteArguments(rpcWorker, md, false)) return null; - var rpcName = md.Name; + string rpcName = md.Name; int index = rpcName.IndexOf(RpcPrefix); if (index > -1) {