diff --git a/src/Simulation.cpp b/src/Simulation.cpp index 95755ad..ea90ec0 100644 --- a/src/Simulation.cpp +++ b/src/Simulation.cpp @@ -148,7 +148,7 @@ void Simulation::simulate() { // if the wire value changes, evaluate gates if(doesChange) { Gate * tmpGate; - Event gateEvent; + Event gateEvent(-1, -1, -1, nullptr); int index = 0; while(true){ tmpGate = output->getGate(index++);