Skip to content

Commit 4b229a2

Browse files
committed
Moved boolean condition to make sure its set even if exception is thrown
1 parent d41445f commit 4b229a2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Packages/com.unity.inputsystem/InputSystem/InputManager.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,6 +2059,7 @@ internal void RegisterCustomTypes()
20592059
{
20602060
if (hasCustomTypesBeenRegistered)
20612061
return;
2062+
hasCustomTypesBeenRegistered = true;
20622063

20632064
k_InputRegisterCustomTypesMarker.Begin();
20642065

@@ -2089,8 +2090,6 @@ internal void RegisterCustomTypes()
20892090
}
20902091

20912092
k_InputRegisterCustomTypesMarker.End();
2092-
2093-
hasCustomTypesBeenRegistered = true;
20942093
}
20952094

20962095
internal void InstallRuntime(IInputRuntime runtime)

0 commit comments

Comments
 (0)