From bf8d837ad102d547183f8a611adf9d79a62032b0 Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Mon, 28 Mar 2016 11:18:34 -0700 Subject: [PATCH] Fixed SetDIPSwitches() bug from last check-in --- modules/pcjs/lib/chipset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/pcjs/lib/chipset.js b/modules/pcjs/lib/chipset.js index 9399f4303..8d88550d8 100644 --- a/modules/pcjs/lib/chipset.js +++ b/modules/pcjs/lib/chipset.js @@ -2638,7 +2638,7 @@ ChipSet.prototype.parseDIPSwitches = function(sBits, bDefault) ChipSet.prototype.setDIPSwitches = function(iType, value, fInit) { var switchDIPs = ChipSet.DIPSW[this.model] || ChipSet.DIPSW[this.model|0] || ChipSet.DIPSW[ChipSet.MODEL_5150]; - for (var iDIP = 0; iDIP < ChipSet.DIPSW.length; iDIP++) { + for (var iDIP = 0; iDIP < switchDIPs.length; iDIP++) { var switchTypes = switchDIPs[iDIP]; if (switchTypes) { var switchGroup = switchTypes[iType];