formatting

This commit is contained in:
sirhamsteralot
2019-12-26 00:07:18 +01:00
parent 5d40cf373d
commit 92ae252210

View File

@@ -371,12 +371,12 @@ namespace Torch.Managers.PatchManager
if (fieldDef == null) throw new Exception($"Could not find field {fieldName}"); if (fieldDef == null) throw new Exception($"Could not find field {fieldName}");
if (fieldDef.IsStatic) if (fieldDef.IsStatic)
yield return new MsilInstruction(param.ParameterType.IsByRef ? OpCodes.Ldsflda : OpCodes.Ldsfld) yield return new MsilInstruction(param.ParameterType.IsByRef ? OpCodes.Ldsflda : OpCodes.Ldsfld)
.InlineValue(fieldDef); .InlineValue(fieldDef);
else else
{ {
yield return new MsilInstruction(OpCodes.Ldarg_0); yield return new MsilInstruction(OpCodes.Ldarg_0);
yield return new MsilInstruction(param.ParameterType.IsByRef ? OpCodes.Ldflda : OpCodes.Ldfld) yield return new MsilInstruction(param.ParameterType.IsByRef ? OpCodes.Ldflda : OpCodes.Ldfld)
.InlineValue(fieldDef); .InlineValue(fieldDef);
} }
break; break;
} }