Skip to content

Commit 7d51446

Browse files
authored
Merge pull request #1098 from PlayEveryWare/fix/wrapped-initialize-thread-affinity-null-case
fix: `WrappedInitializeThreadAffinity` `null` case
2 parents 5246e6c + f92b2be commit 7d51446

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

com.playeveryware.eos/Runtime/Core/Config/PlatformConfig.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,14 @@ protected PlatformConfig(PlatformManager.Platform platform) :
266266
Platform = platform;
267267
}
268268

269+
protected override void OnReadCompleted()
270+
{
271+
base.OnReadCompleted();
272+
273+
// If thread affinity is null then instantiate it.
274+
threadAffinity ??= new();
275+
}
276+
269277
#region Logic for Migrating Override Values from Previous Structure
270278

271279
// This warning is suppressed because while EOSConfig is marked as

0 commit comments

Comments
 (0)