1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-01-22 08:26:48 +00:00

Fix boundary condition.

This commit is contained in:
Thomas Harte
2025-01-17 21:46:43 -05:00
parent 0f545608c4
commit 00b1865fc8

View File

@@ -19,7 +19,7 @@ public:
MultiJoystick(std::vector<MachineTypes::JoystickMachine *> &machines, const std::size_t index) {
for(const auto &machine: machines) {
const auto &joysticks = machine->get_joysticks();
if(joysticks.size() >= index) {
if(joysticks.size() > index) {
joysticks_.push_back(joysticks[index].get());
}
}