浏览代码

User more correct plus file on get_current_dir.

Juan Linietsky 7 年之前
父节点
当前提交
da1f53c8d9
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;