From 8ecf0637c6830b26bbe2c1221847e12f96df81a4 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Tue, 30 Jun 2020 01:18:04 +0930 Subject: continue converting things to use object over gate --- Gate.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Gate.cpp') diff --git a/Gate.cpp b/Gate.cpp index 00e3d00..e389a34 100644 --- a/Gate.cpp +++ b/Gate.cpp @@ -42,11 +42,11 @@ void Gate::remove_output_gate_id(int id) { int pos = 0; - for(auto g = output_gate_ids.begin(); g != output_gate_ids.end(); ++g) + for(auto o = output_object_ids.begin(); o != output_object_ids.end(); ++o) { - if (id == (*g)) + if (id == (*o)) { - output_gate_ids.erase(output_gate_ids.begin() + pos); + output_object_ids.erase(output_object_ids.begin() + pos); break; } pos++; -- cgit v1.2.3