diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-16 22:32:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-16 22:32:49 +0100 |
commit | 8b0e2a409b9c111cf63ac8db0045675f6e8efa4f (patch) | |
tree | cf28ed1943a93e60fe7023a2fdee0cdf9a8923d5 /modules/gdscript/gdscript.cpp | |
parent | 03be8104342ee40f20b5f1bc448999b7fe12248a (diff) | |
parent | da5b138e642b358ab7cecf22e0cbf4a0b85b9dc7 (diff) |
Merge pull request #35218 from bojidar-bg/26691-parse-error-errors
Fix errors raised when showing parse errors in the editor
Diffstat (limited to 'modules/gdscript/gdscript.cpp')
-rw-r--r-- | modules/gdscript/gdscript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index 8030837cd4..a255b92257 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -320,7 +320,7 @@ ScriptInstance *GDScript::instance_create(Object *p_this) { if (!ClassDB::is_parent_class(p_this->get_class_name(), top->native->get_name())) { if (ScriptDebugger::get_singleton()) { - GDScriptLanguage::get_singleton()->debug_break_parse(get_path(), 0, "Script inherits from native type '" + String(top->native->get_name()) + "', so it can't be instanced in object of type: '" + p_this->get_class() + "'"); + GDScriptLanguage::get_singleton()->debug_break_parse(get_path(), 1, "Script inherits from native type '" + String(top->native->get_name()) + "', so it can't be instanced in object of type: '" + p_this->get_class() + "'"); } ERR_FAIL_V_MSG(NULL, "Script inherits from native type '" + String(top->native->get_name()) + "', so it can't be instanced in object of type '" + p_this->get_class() + "'" + "."); } |