Skip to content

Commit

Permalink
Split assert
Browse files Browse the repository at this point in the history
  • Loading branch information
Legulysse authored and ChrisThrasher committed Dec 6, 2024
1 parent 6442d88 commit 4f0384d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imgui-SFML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<ImGuiKey>(key);
}
Expand Down

0 comments on commit 4f0384d

Please sign in to comment.