GunCon2: Fix cursor assertions in devbuilds

This commit is contained in:
Stenzek 2024-01-20 16:11:18 +10:00 committed by Connor McLaughlin
parent 609cb44b01
commit a8d07df81d
2 changed files with 1 additions and 2 deletions

View File

@ -1049,7 +1049,7 @@ void ImGuiManager::ClearSoftwareCursor(u32 index)
void ImGuiManager::SetSoftwareCursorPosition(u32 index, float pos_x, float pos_y)
{
pxAssert(index >= InputManager::MAX_POINTER_DEVICES);
pxAssert(index < InputManager::MAX_SOFTWARE_CURSORS);
SoftwareCursor& sc = s_software_cursors[index];
sc.pos.first = pos_x;
sc.pos.second = pos_y;

View File

@ -427,7 +427,6 @@ namespace usb_lightgun
void GunCon2State::UpdateSoftwarePointerPosition()
{
pxAssert(has_relative_binds);
if (cursor_path.empty())
return;