Skip to content

Commit

Permalink
Fixed critical insta crash bug that I missed.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirdoombox committed Apr 3, 2020
1 parent c185879 commit 101ea86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BannerLib.Input/InputSubModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected override void OnApplicationTick(float dt)
foreach (var hotkey in m_hotKeys)
{
if (!hotkey.IsEnabled) continue;
if (!hotkey.Predicate()) continue;
if (!(hotkey.Predicate is null) && !hotkey.Predicate()) continue;
if (hotkey.GameKey.PrimaryKey.InputKey.IsDown())
hotkey.IsDown?.Invoke();
if (hotkey.GameKey.PrimaryKey.InputKey.IsPressed())
Expand Down

0 comments on commit 101ea86

Please sign in to comment.