mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Fix crash if NodeResolver destroyed before pending any node resolutions
This commit is contained in:
parent
800d912b6f
commit
d91559b8f0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user