Skip to content

Commit c2fc158

Browse files
committed
Fix NullRefException in JittedMethods again
1 parent e788b02 commit c2fc158

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Client/Desyncs/JittedMethods.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static void Init()
4141
profiler = Native.mono_profiler_create(IntPtr.Zero);
4242
Native.mono_profiler_set_jit_done_callback(profiler, (_, method, _) =>
4343
{
44-
if (!adding && UnityData.IsInMainThread)
44+
if (!adding && UnityData.IsInMainThread && Multiplayer.settings != null)
4545
{
4646
adding = true;
4747
try

0 commit comments

Comments
 (0)