diff options
| author | Rémi Verschelde | 2018-03-20 12:50:19 +0100 |
|---|---|---|
| committer | GitHub | 2018-03-20 12:50:19 +0100 |
| commit | b49ca9486cfae32a9d795ceca52b923820751879 (patch) | |
| tree | f9ffb22316d64590c46fd1f4f41ff295993b4398 | |
| parent | 6066b236aac2aa7896f6212cc29874e359e1b74e (diff) | |
| parent | 536611704a2be026682ce3d6c7454b97122d341e (diff) | |
| download | godot-b49ca9486cfae32a9d795ceca52b923820751879.tar.gz godot-b49ca9486cfae32a9d795ceca52b923820751879.tar.zst godot-b49ca9486cfae32a9d795ceca52b923820751879.zip | |
| -rw-r--r-- | core/io/file_access_pack.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/io/file_access_pack.cpp b/core/io/file_access_pack.cpp index 1a16d0f61..efb4c7a07 100644 --- a/core/io/file_access_pack.cpp +++ b/core/io/file_access_pack.cpp @@ -88,7 +88,11 @@ void PackedData::add_path(const String &pkg_path, const String &path, uint64_t o } } } - cd->files.insert(path.get_file()); + String filename = path.get_file(); + // Don't add as a file if the path points to a directoryy + if (!filename.empty()) { + cd->files.insert(filename); + } } } |
