summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorDaniel T. Borelli <daltomi@aol.com>2015-05-06 20:37:25 -0300
committerDaniel T. Borelli <daltomi@aol.com>2015-05-06 20:37:25 -0300
commit93095014fd87f1a33bdeaeb1f05eaab9342320bc (patch)
tree9ddc5c058e2fce79457adfce9e2a76a6f15f96f9 /core
parent7156aff16041ea56ff1f3aea2a622c130bcca7a9 (diff)
Fix segment violation MINIZIP_ENABLED
Diffstat (limited to 'core')
-rw-r--r--core/io/file_access_pack.cpp4
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;