Fix root path resolution on PCK file
This commit is contained in:
parent
e01fdd8a86
commit
1d759f02e6
@ -398,6 +398,8 @@ Error DirAccessPack::change_dir(String p_dir) {
|
||||
|
||||
nd = nd.simplify_path();
|
||||
|
||||
if (nd == "") nd = ".";
|
||||
|
||||
if (nd.begins_with("/")) {
|
||||
nd = nd.replace_first("/", "");
|
||||
absolute = true;
|
||||
|
Loading…
Reference in New Issue
Block a user