From 3464eabb4db646059562cda4da5f1d18764d11fb Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Thu, 14 Mar 2024 05:53:22 -0400 Subject: [PATCH] Don't assert that a similar cable exists in Engine::addCable() since Engine handles it fine. App code should enforce it. --- src/engine/Engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/Engine.cpp b/src/engine/Engine.cpp index a1e1d2aa..876b581c 100644 --- a/src/engine/Engine.cpp +++ b/src/engine/Engine.cpp @@ -923,7 +923,7 @@ void Engine::addCable_NoLock(Cable* cable) { // Check that the cable is not already added assert(cable2 != cable); // Check that cable isn't similar to another cable - assert(!(cable2->inputModule == cable->inputModule && cable2->inputId == cable->inputId && cable2->outputModule == cable->outputModule && cable2->outputId == cable->outputId)); + // assert(!(cable2->inputModule == cable->inputModule && cable2->inputId == cable->inputId && cable2->outputModule == cable->outputModule && cable2->outputId == cable->outputId)); // Check if input is already connected to a cable if (cable2->inputModule == cable->inputModule && cable2->inputId == cable->inputId) inputWasConnected = true;