diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-05-07 20:03:25 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-05-07 20:03:25 -0300 |
commit | 7c4a35496a350b3728be0818ada90a07d1c80328 (patch) | |
tree | 026961c07023bddce1bdd5f594d4a407f33e452b /core/io/file_access_pack.cpp | |
parent | deba45ebf781eaf12964d530336b72b2fd78f2a5 (diff) | |
parent | 93095014fd87f1a33bdeaeb1f05eaab9342320bc (diff) |
Merge pull request #1844 from daltomi/SIGSEGV
Fix segment violation MINIZIP_ENABLED
Diffstat (limited to 'core/io/file_access_pack.cpp')
-rw-r--r-- | core/io/file_access_pack.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/io/file_access_pack.cpp b/core/io/file_access_pack.cpp index bf1211f2b3..339a6d0528 100644 --- a/core/io/file_access_pack.cpp +++ b/core/io/file_access_pack.cpp @@ -92,7 +92,9 @@ void PackedData::add_path(const String& pkg_path, const String& path, uint64_t o void PackedData::add_pack_source(PackSource *p_source) { - sources.push_back(p_source); + if (p_source != NULL) { + sources.push_back(p_source); + } }; PackedData *PackedData::singleton=NULL; |