diff --git a/TABGVR/Patches/CameraMovementPatch.cs b/TABGVR/Patches/CameraMovementPatch.cs index 0b9c7ad..2b69a5b 100644 --- a/TABGVR/Patches/CameraMovementPatch.cs +++ b/TABGVR/Patches/CameraMovementPatch.cs @@ -13,6 +13,8 @@ public class CameraMovementPatch [HarmonyTranspiler] public static IEnumerable LateUpdate(IEnumerable instructions) { + var instructionsList = instructions.ToArray(); + foreach (var instruction in instructions.Select((value, i) => new { i, value })) { // instruction.value.opcode == OpCodes.Ldarg_0 &&