You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Check for _language in PluginScript.instance_has
This commit is contained in:
@@ -212,6 +212,8 @@ ScriptInstance *PluginScript::instance_create(Object *p_this) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool PluginScript::instance_has(const Object *p_this) const {
|
bool PluginScript::instance_has(const Object *p_this) const {
|
||||||
|
ERR_FAIL_COND_V(!_language, false);
|
||||||
|
|
||||||
_language->lock();
|
_language->lock();
|
||||||
bool hasit = _instances.has((Object *)p_this);
|
bool hasit = _instances.has((Object *)p_this);
|
||||||
_language->unlock();
|
_language->unlock();
|
||||||
|
|||||||
Reference in New Issue
Block a user