Skip to content

Commit 4f0384d

Browse files
LegulysseChrisThrasher
authored andcommitted
Split assert
1 parent 6442d88 commit 4f0384d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

imgui-SFML.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,8 @@ void SetJoystickRTriggerThreshold(float threshold) {
586586

587587
void SetJoystickMapping(int key, unsigned int joystickButton) {
588588
assert(s_currWindowCtx);
589-
assert(key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END);
589+
assert(key >= ImGuiKey_NamedKey_BEGIN);
590+
assert(key < ImGuiKey_NamedKey_END);
590591
assert(joystickButton < sf::Joystick::ButtonCount);
591592
s_currWindowCtx->joystickMapping[joystickButton] = static_cast<ImGuiKey>(key);
592593
}

0 commit comments

Comments
 (0)