mirror of https://github.com/snes9xgit/snes9x.git
joynums.fill(false);
This commit is contained in:
parent
38b1e495ea
commit
65d41e7b37
|
@ -747,6 +747,7 @@ void JoyDevices::clear()
|
||||||
bool JoyDevices::add(int sdl_device_index)
|
bool JoyDevices::add(int sdl_device_index)
|
||||||
{
|
{
|
||||||
std::array<bool, NUM_JOYPADS> joynums;
|
std::array<bool, NUM_JOYPADS> joynums;
|
||||||
|
joynums.fill(false);
|
||||||
for (auto &j : joysticks)
|
for (auto &j : joysticks)
|
||||||
{
|
{
|
||||||
joynums[j.second->joynum] = true;
|
joynums[j.second->joynum] = true;
|
||||||
|
|
Loading…
Reference in New Issue