Fix localise_path method so that uncached scripts don't sometimes get loaded with two backslashes
This commit is contained in:
parent
d482a1d8e8
commit
1342551664
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue