mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Writers: remove static WeavingFailed references
This commit is contained in:
parent
7762058b86
commit
9fe4608532
@ -66,7 +66,7 @@ public MethodReference GetWriteFunc(TypeReference variable, ref bool WeavingFail
|
||||
catch (GenerateWriterException e)
|
||||
{
|
||||
Log.Error(e.Message, e.MemberReference);
|
||||
Weaver.WeavingFailed = true;
|
||||
WeavingFailed = true;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -281,7 +281,7 @@ MethodDefinition GenerateCollectionWriter(TypeReference variable, TypeReference
|
||||
if (elementWriteFunc == null)
|
||||
{
|
||||
Log.Error($"Cannot generate writer for {variable}. Use a supported type or provide a custom writer", variable);
|
||||
Weaver.WeavingFailed = true;
|
||||
WeavingFailed = true;
|
||||
return writerFunc;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user