diff options
| author | Pedro J. Estébanez | 2018-03-18 14:04:50 +0100 |
|---|---|---|
| committer | Pedro J. Estébanez | 2018-03-18 14:04:50 +0100 |
| commit | 536611704a2be026682ce3d6c7454b97122d341e (patch) | |
| tree | 01e2df499993896f8b390130f3ad954fbcada7c5 /core/io/file_access_pack.cpp | |
| parent | 201d2d7226ba4d385ac26e3cfaada180c2a7dacb (diff) | |
| download | godot-536611704a2be026682ce3d6c7454b97122d341e.tar.gz godot-536611704a2be026682ce3d6c7454b97122d341e.tar.zst godot-536611704a2be026682ce3d6c7454b97122d341e.zip | |
Diffstat (limited to 'core/io/file_access_pack.cpp')
| -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); + } } } |
