Skip to content

Commit d8a3405

Browse files
committed
Address U-PR comment to null check a function hook
1 parent 34a5d1c commit d8a3405

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Packages/com.unity.inputsystem/InputSystem/Runtime/Actions/InputActionState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4339,7 +4339,7 @@ private static void InitializeGlobalActionState()
43394339
// Appears we shouldn't really reset globals in case the domain reload is enabled.
43404340
// This is because in that case, we've just had the whole system init'ed via static ctors
43414341
// Moreover, later in GlobalInialize we skip initialization specifically in this case.
4342-
if (!InputSystem.s_IsDomainReloadDisabled())
4342+
if (!(InputSystem.s_IsDomainReloadDisabled?.Invoke() ?? false))
43434343
return;
43444344
#endif
43454345

0 commit comments

Comments
 (0)