Browse Source

User more correct plus file on get_current_dir.

Juan Linietsky 7 years ago
parent
commit
da1f53c8d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/io/file_access_pack.cpp

+ 1 - 1
core/io/file_access_pack.cpp

@@ -455,7 +455,7 @@ String DirAccessPack::get_current_dir() {
 
 	while (pd->parent) {
 		pd = pd->parent;
-		p = pd->name + "/" + p;
+		p = pd->name.plus_file(p);
 	}
 
 	return "res://" + p;