mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 03:23:45 +01:00
Fix crash due to missing pointer validation
Based on commit 014a1a0
This commit is contained in:
parent
fb4bfc60de
commit
119aa5c919
@ -170,7 +170,8 @@ struct LocalFormspecHandler : public TextDest
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Don't disable this part when modding is disabled, it's used in builtin
|
// Don't disable this part when modding is disabled, it's used in builtin
|
||||||
m_client->getScript()->on_formspec_input(m_formname, fields);
|
if (m_client && m_client->getScript())
|
||||||
|
m_client->getScript()->on_formspec_input(m_formname, fields);
|
||||||
}
|
}
|
||||||
|
|
||||||
Client *m_client;
|
Client *m_client;
|
||||||
|
Loading…
Reference in New Issue
Block a user