mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Remove unused variable
This commit is contained in:
parent
97fe2331f1
commit
24329b1ebe
@ -512,7 +512,6 @@ void GenerateSerialization()
|
||||
serialize.Body.Variables.Add(dirtyLocal);
|
||||
|
||||
// call base class
|
||||
bool baseClassSerialize = false;
|
||||
if (m_td.BaseType.FullName != Weaver.NetworkBehaviourType.FullName)
|
||||
{
|
||||
MethodReference baseSerialize = Weaver.ResolveMethod(m_td.BaseType, "OnSerialize");
|
||||
@ -523,7 +522,6 @@ void GenerateSerialization()
|
||||
serWorker.Append(serWorker.Create(OpCodes.Ldarg_2)); // forceAll
|
||||
serWorker.Append(serWorker.Create(OpCodes.Call, baseSerialize));
|
||||
serWorker.Append(serWorker.Create(OpCodes.Stloc_0)); // set dirtyLocal to result of base.OnSerialize()
|
||||
baseClassSerialize = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user