diff --git a/docs/CONTRIBUTORS b/docs/CONTRIBUTORS index 763ac8ac0..3170421fa 100644 --- a/docs/CONTRIBUTORS +++ b/docs/CONTRIBUTORS @@ -61,6 +61,7 @@ David Turner Dercury Diego Roux Dominick Grochowina +Dragon-Git Don Williamson Drew Ranck Drew Taussig @@ -334,4 +335,4 @@ Yogish Sekhar Zubin Jain Muzaffer Kal Yilin Li -Shashvat Prabhu +Shashvat Prabhu \ No newline at end of file diff --git a/include/verilated_types.h b/include/verilated_types.h index 40847b65e..6733dda89 100644 --- a/include/verilated_types.h +++ b/include/verilated_types.h @@ -337,6 +337,7 @@ public: ~VlProcess() { if (m_parentp) m_parentp->detach(this); + if (t_currentp == this) t_currentp = m_parentp; } void attach(VlProcess* childp) { m_children.insert(childp); }