summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-03-02 00:30:31 +0100
committerkobewi <kobewi4e@gmail.com>2022-03-02 17:57:56 +0100
commit98dd04c38cfd59e27cfac7f349b4833b8db8becf (patch)
tree474316e3a2ae8c759da5eb7842ab271ac7ff9eed /modules
parent62765fb7ca7cca7ae0c56be99cc99d9b3b0bd040 (diff)
Fix debugger not opening built-in scripts
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/gdscript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp
index 58a788e255..8bf5fd1eda 100644
--- a/modules/gdscript/gdscript.cpp
+++ b/modules/gdscript/gdscript.cpp
@@ -796,7 +796,7 @@ void GDScript::_set_subclass_path(Ref<GDScript> &p_sc, const String &p_path) {
String GDScript::_get_debug_path() const {
if (is_built_in() && !get_name().is_empty()) {
- return get_name() + " (" + get_path().get_slice("::", 0) + ")";
+ return get_name() + " (" + get_path() + ")";
} else {
return get_path();
}