Fix crash due to missing pointer validation

Based on commit 014a1a0
This commit is contained in:
Loic Blot 2017-07-02 22:26:25 +02:00 committed by sfan5
parent fb4bfc60de
commit 119aa5c919

@ -170,6 +170,7 @@ struct LocalFormspecHandler : public TextDest
}
// Don't disable this part when modding is disabled, it's used in builtin
if (m_client && m_client->getScript())
m_client->getScript()->on_formspec_input(m_formname, fields);
}