summaryrefslogtreecommitdiff
path: root/logiccircuitframework/components.py
diff options
context:
space:
mode:
Diffstat (limited to 'logiccircuitframework/components.py')
-rw-r--r--logiccircuitframework/components.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/logiccircuitframework/components.py b/logiccircuitframework/components.py
index 9f6cbcd..e80b454 100644
--- a/logiccircuitframework/components.py
+++ b/logiccircuitframework/components.py
@@ -101,7 +101,7 @@ class Component(object):
def _get_first_available_output(self):
used_outputs = [link.output_id for link in self.child_links]
r = range(1, self.outputs + 1)
- free_inputs = [i for i in r if i not in used_outputs]
+ free_outputs = [i for i in r if i not in used_outputs]
if not free_outputs:
return 1
return free_outputs[0]