Fixed error caught with stricter compiler settings.

This commit is contained in:
Sebastian 2018-05-18 19:06:37 +01:00
parent 82729a12c8
commit ec5bc3e738

View File

@ -495,8 +495,8 @@ void SImGuiWidget::UpdateInputEnabled()
if (bInputEnabled)
{
InputState.SetKeyboardNavigationEnabled(CVars::InputNavigation.GetValueOnGameThread() & 1);
InputState.SetGamepadNavigationEnabled(CVars::InputNavigation.GetValueOnGameThread() & 2);
InputState.SetKeyboardNavigationEnabled((CVars::InputNavigation.GetValueOnGameThread() & 1) != 0);
InputState.SetGamepadNavigationEnabled((CVars::InputNavigation.GetValueOnGameThread() & 2) != 0);
const auto& Application = FSlateApplication::Get().GetPlatformApplication();
InputState.SetGamepad(Application.IsValid() && Application->IsGamepadAttached());
}