Fix memory leak if deleting kart with swatter on

This commit is contained in:
Benau 2021-09-19 07:55:06 +08:00
parent 26db54c90f
commit b773c009cb

View File

@ -86,6 +86,7 @@ Attachment::Attachment(AbstractKart* kart)
*/
Attachment::~Attachment()
{
clear();
if(m_node)
irr_driver->removeNode(m_node);