summaryrefslogtreecommitdiffstats
path: root/src/sp-switch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-switch.cpp')
-rw-r--r--src/sp-switch.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sp-switch.cpp b/src/sp-switch.cpp
index f6c267f79..68f021fda 100644
--- a/src/sp-switch.cpp
+++ b/src/sp-switch.cpp
@@ -42,6 +42,7 @@ CSwitch::~CSwitch() {
static void sp_switch_init (SPSwitch *sw)
{
sw->cswitch = new CSwitch(sw);
+ sw->typeHierarchy.insert(typeid(SPSwitch));
delete sw->cgroup;
sw->cgroup = sw->cswitch;