mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Removed leftover counter
This commit is contained in:
parent
00dec7e498
commit
f4397e1ef7
@ -250,7 +250,6 @@ void WriteNullCheck(ILProcessor worker, ref bool WeavingFailed)
|
||||
// Find all fields in type and write them
|
||||
bool WriteAllFields(TypeReference variable, ILProcessor worker, ref bool WeavingFailed)
|
||||
{
|
||||
uint fields = 0;
|
||||
foreach (FieldDefinition field in variable.FindAllPublicFields())
|
||||
{
|
||||
MethodReference writeFunc = GetWriteFunc(field.FieldType, ref WeavingFailed);
|
||||
@ -259,7 +258,6 @@ bool WriteAllFields(TypeReference variable, ILProcessor worker, ref bool Weaving
|
||||
|
||||
FieldReference fieldRef = assembly.MainModule.ImportReference(field);
|
||||
|
||||
fields++;
|
||||
worker.Emit(OpCodes.Ldarg_0);
|
||||
worker.Emit(OpCodes.Ldarg_1);
|
||||
worker.Emit(OpCodes.Ldfld, fieldRef);
|
||||
|
Loading…
Reference in New Issue
Block a user