From a3c09959346e8966c3e0aeefb12ebdacce6d261f Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Thu, 18 Aug 2016 11:32:10 -0700 Subject: [PATCH] Folded a PC8080 change back into PCx86 --- modules/pcx86/lib/computer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/pcx86/lib/computer.js b/modules/pcx86/lib/computer.js index a9c8ff628..a913f461f 100644 --- a/modules/pcx86/lib/computer.js +++ b/modules/pcx86/lib/computer.js @@ -1414,6 +1414,7 @@ Computer.prototype.onReset = function() */ Computer.prototype.getMachineComponent = function(sType, componentPrev) { + var componentLast = componentPrev; var aComponents = Component.getComponents(this.id); for (var iComponent = 0; iComponent < aComponents.length; iComponent++) { var component = aComponents[iComponent]; @@ -1423,6 +1424,7 @@ Computer.prototype.getMachineComponent = function(sType, componentPrev) } if (component.type == sType) return component; } + if (!componentLast) Component.log("Machine component type '" + sType + "' not found", "warning"); return null; };