From ec5bc3e738b2858330b5a74aad5c073ef60849da Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 18 May 2018 19:06:37 +0100 Subject: [PATCH] Fixed error caught with stricter compiler settings. --- Source/ImGui/Private/SImGuiWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/ImGui/Private/SImGuiWidget.cpp b/Source/ImGui/Private/SImGuiWidget.cpp index e677f56..dbd0ed1 100644 --- a/Source/ImGui/Private/SImGuiWidget.cpp +++ b/Source/ImGui/Private/SImGuiWidget.cpp @@ -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()); }