From 7c1eaf7363f87fc7d892a93a0dd0da9c688da425 Mon Sep 17 00:00:00 2001 From: vis2k Date: Wed, 16 Jan 2019 00:15:36 +0100 Subject: [PATCH] Use actual type --- Assets/Mirror/Weaver/Processors/MonoBehaviourProcessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirror/Weaver/Processors/MonoBehaviourProcessor.cs b/Assets/Mirror/Weaver/Processors/MonoBehaviourProcessor.cs index e43a57cfc..1c09260b2 100644 --- a/Assets/Mirror/Weaver/Processors/MonoBehaviourProcessor.cs +++ b/Assets/Mirror/Weaver/Processors/MonoBehaviourProcessor.cs @@ -58,7 +58,7 @@ static void ProcessMethods(TypeDefinition td) Weaver.fail = true; } - var attrName = ca.Constructor.DeclaringType.ToString(); + string attrName = ca.Constructor.DeclaringType.ToString(); switch (attrName) {