Skip to content

Commit

Permalink
fix: potential NRE with weaver errors
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpach committed Sep 30, 2020
1 parent ca18d11 commit 9e0c18c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Mirror/Editor/Weaver/Writers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ static MethodDefinition GenerateClassOrStructWriterFunction(TypeReference variab
WriteNullCheck(worker);

if (!WriteAllFields(variable, worker))
return null;
return writerFunc;

worker.Append(worker.Create(OpCodes.Ret));
return writerFunc;
Expand Down

0 comments on commit 9e0c18c

Please sign in to comment.