Skip to content

Commit

Permalink
Fix localise_path method so that uncached scripts don't sometimes get…
Browse files Browse the repository at this point in the history
… loaded with two backslashes
  • Loading branch information
SaracenOne committed Nov 6, 2019
1 parent d482a1d commit 1342551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/project_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ String ProjectSettings::localize_path(const String &p_path) const {
if (plocal == "") {
return "";
};
return plocal + path.substr(sep, path.size() - sep);
return plocal + path.substr((sep + 1), path.size() - (sep + 1));
};
}

Expand Down

0 comments on commit 1342551

Please sign in to comment.