mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Fix crash if NodeResolver destroyed before pending any node resolutions
This commit is contained in:
parent
800d912b6f
commit
d91559b8f0
1 changed files with 2 additions and 2 deletions
|
@ -402,9 +402,9 @@ public:
|
||||||
m_ndef = NULL;
|
m_ndef = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
~NodeResolver()
|
virtual ~NodeResolver()
|
||||||
{
|
{
|
||||||
if (!m_lookup_done)
|
if (!m_lookup_done && m_ndef)
|
||||||
m_ndef->cancelNodeResolve(this);
|
m_ndef->cancelNodeResolve(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue