Fix root path resolution on PCK file

This commit is contained in:
George Marques 2016-09-03 19:35:42 -03:00
parent c1dfbb7628
commit 2eaad1cfd1
No known key found for this signature in database
GPG Key ID: 046BD46A3201E43D

View File

@ -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;