Browse Source

fixed duplicate resource name bug

ncannasse 10 năm trước cách đây
mục cha
commit
2c0c5262db
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      hxd/res/FileTree.hx

+ 1 - 1
hxd/res/FileTree.hx

@@ -305,7 +305,7 @@ class FileTree {
 				};
 				fields.push(field);
 				fields.push(fget);
-				dict.set(f, { path : relPath + "/" + fileName, field : field, fget : fget });
+				dict.set(fname, { path : relPath + "/" + fileName, field : field, fget : fget });
 			}
 		}
 	}