1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-08-13 16:53:49 -04:00

Fix crash if NodeResolver destroyed before pending any node resolutions

This commit is contained in:
kwolekr 2015-01-03 11:05:31 -05:00
parent 800d912b6f
commit d91559b8f0

View File

@ -402,9 +402,9 @@ public:
m_ndef = NULL;
}
~NodeResolver()
virtual ~NodeResolver()
{
if (!m_lookup_done)
if (!m_lookup_done && m_ndef)
m_ndef->cancelNodeResolve(this);
}