Check for _language in PluginScript.instance_has
(cherry picked from commit 4b25892501
)
This commit is contained in:
parent
462e57f5e6
commit
6e67b7a93e
@ -203,6 +203,8 @@ ScriptInstance *PluginScript::instance_create(Object *p_this) {
|
||||
}
|
||||
|
||||
bool PluginScript::instance_has(const Object *p_this) const {
|
||||
ERR_FAIL_COND_V(!_language, false);
|
||||
|
||||
_language->lock();
|
||||
bool hasit = _instances.has((Object *)p_this);
|
||||
_language->unlock();
|
||||
|
Loading…
Reference in New Issue
Block a user