[Gamepad] Fix comp

This commit is contained in:
Diavolo 2022-08-25 00:01:49 +02:00
parent f0258631b2
commit e0ea52a496
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5

View File

@ -1126,7 +1126,7 @@ namespace Components
void Gamepad::CL_GamepadButtonEvent(const int gamePadIndex, const int key, const Game::GamePadButtonEvent buttonEvent, const unsigned time)
{
AssertIn(gamePadInde, Game::MAX_GPAD_COUNT);
AssertIn(gamePadIndex, Game::MAX_GPAD_COUNT);
const auto pressed = buttonEvent == Game::GPAD_BUTTON_PRESSED;
const auto pressedOrUpdated = pressed || buttonEvent == Game::GPAD_BUTTON_UPDATE;