Skip to content

Commit 41e1c45

Browse files
authored
Use IL2CPP array in SecurityLogger (#57)
1 parent 344b500 commit 41e1c45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CrowdedMod/Patches/MiniGamePatches.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using HarmonyLib;
2+
using Il2CppInterop.Runtime.InteropTypes.Arrays;
23

34
namespace CrowdedMod.Patches;
45

@@ -9,7 +10,7 @@ public static class SecurityLoggerPatch
910
{
1011
public static void Postfix(SecurityLogger __instance)
1112
{
12-
__instance.Timers = new float[CrowdedModPlugin.MaxPlayers];
13+
__instance.Timers = new Il2CppStructArray<float>(CrowdedModPlugin.MaxPlayers);
1314
}
1415
}
1516
}

0 commit comments

Comments
 (0)