From 6aa35066f23e5a9fc934985a7effd69974f2adff Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Fri, 15 Dec 2006 10:01:23 +0100 Subject: [PATCH] We need to make sure that the uid of the first event generated is different from the uid of the simulator when no events have yet been run. --- src/simulator/simulator.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/simulator/simulator.cc b/src/simulator/simulator.cc index c4a3cbecd..d3f52abfc 100644 --- a/src/simulator/simulator.cc +++ b/src/simulator/simulator.cc @@ -92,7 +92,10 @@ SimulatorPrivate::SimulatorPrivate (Scheduler *events) m_stop = false; m_stopAt = 0; m_events = events; - m_uid = 0; + // uids are allocated from 1. + m_uid = 1; + // before ::Run is entered, the m_currentUid will be zero + m_currentUid = 0; m_logEnable = false; m_currentNs = 0; }