Initialize key indices like game does when looking up key bindings

This commit is contained in:
Jan 2022-05-15 10:07:27 +02:00
parent 05f1270a1f
commit 59fc6d7ff9

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);