joynums.fill(false);

This commit is contained in:
Jean Raby 2022-02-18 16:12:19 -05:00
parent 38b1e495ea
commit 65d41e7b37
1 changed files with 1 additions and 0 deletions

View File

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