C++ remains da bawss

Happened that I fucked up, making the parent null before attaching the
next node by call detach node before addnode.