Merge pull request #278 from Laupetin/fix/crash-on-clearing-keys

Fix crash on clearing keys via menus
This commit is contained in:
Edo 2022-05-15 09:17:10 +01:00 committed by GitHub
commit 9974d0a71a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1787,6 +1787,9 @@ namespace Components
{
auto keyCount = 0;
(*keys)[0] = -1;
(*keys)[1] = -1;
if (gamePads[0].inUse)
{
const auto gamePadCmd = GetGamePadCommand(cmd);