From 4f0384d68afe34a29703d79dcabb88ed9b31fa93 Mon Sep 17 00:00:00 2001 From: Legulysse Date: Sun, 1 Dec 2024 17:18:10 +0100 Subject: [PATCH] Split assert --- imgui-SFML.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imgui-SFML.cpp b/imgui-SFML.cpp index b3d91dd..b478299 100644 --- a/imgui-SFML.cpp +++ b/imgui-SFML.cpp @@ -586,7 +586,8 @@ void SetJoystickRTriggerThreshold(float threshold) { void SetJoystickMapping(int key, unsigned int joystickButton) { assert(s_currWindowCtx); - assert(key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END); + assert(key >= ImGuiKey_NamedKey_BEGIN); + assert(key < ImGuiKey_NamedKey_END); assert(joystickButton < sf::Joystick::ButtonCount); s_currWindowCtx->joystickMapping[joystickButton] = static_cast(key); }