diff --git a/js/gamepad.js b/js/gamepad.js index 07255bf..5c78b7b 100644 --- a/js/gamepad.js +++ b/js/gamepad.js @@ -360,7 +360,7 @@ class Gamepad { return; } - if ('undefined' === typeof zoomLevel) { + if ('undefined' === typeof gamepadColor) { // no color was specified, load the next one in list this.activeGamepadColorIndex++; if (this.activeGamepadColorIndex > this.activeGamepadIdentifier.colors.length - 1) {