diff options
| author | George Marques | 2016-09-03 19:35:42 -0300 |
|---|---|---|
| committer | George Marques | 2016-09-03 19:35:42 -0300 |
| commit | 2eaad1cfd1c96538d7aaf8bbd46535f8a143d2ad (patch) | |
| tree | 1f3a23eba97e55ab657805566f1204191b6014c4 /core/io/file_access_pack.cpp | |
| parent | c1dfbb7628e93370217eff204d997640793054e4 (diff) | |
| download | godot-2eaad1cfd1c96538d7aaf8bbd46535f8a143d2ad.tar.gz godot-2eaad1cfd1c96538d7aaf8bbd46535f8a143d2ad.tar.zst godot-2eaad1cfd1c96538d7aaf8bbd46535f8a143d2ad.zip | |
Diffstat (limited to 'core/io/file_access_pack.cpp')
| -rw-r--r-- | core/io/file_access_pack.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/io/file_access_pack.cpp b/core/io/file_access_pack.cpp index 5c8c741f2..1632b841c 100644 --- a/core/io/file_access_pack.cpp +++ b/core/io/file_access_pack.cpp @@ -409,6 +409,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; |
