aboutsummaryrefslogtreecommitdiff
path: root/core/io/file_access_pack.cpp
diff options
context:
space:
mode:
authorWilson E. Alvarez2017-07-30 19:07:04 -0400
committerWilson E. Alvarez2017-08-08 21:43:19 -0400
commit6d112a68b685cde609d0d90b2c57f2db6a7b9df6 (patch)
tree46a49619034e5e3f41fd3447c4c5727bfbfcdd64 /core/io/file_access_pack.cpp
parent950b205609ce41ab4804196a125e91274eb20258 (diff)
downloadgodot-6d112a68b685cde609d0d90b2c57f2db6a7b9df6.tar.gz
godot-6d112a68b685cde609d0d90b2c57f2db6a7b9df6.tar.zst
godot-6d112a68b685cde609d0d90b2c57f2db6a7b9df6.zip
Diffstat (limited to 'core/io/file_access_pack.cpp')
-rw-r--r--core/io/file_access_pack.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/io/file_access_pack.cpp b/core/io/file_access_pack.cpp
index 79aa39521..c3bcfc840 100644
--- a/core/io/file_access_pack.cpp
+++ b/core/io/file_access_pack.cpp
@@ -308,10 +308,9 @@ bool FileAccessPack::file_exists(const String &p_name) {
return false;
}
-FileAccessPack::FileAccessPack(const String &p_path, const PackedData::PackedFile &p_file) {
-
- pf = p_file;
- f = FileAccess::open(pf.pack, FileAccess::READ);
+FileAccessPack::FileAccessPack(const String &p_path, const PackedData::PackedFile &p_file)
+ : pf(p_file),
+ f(FileAccess::open(pf.pack, FileAccess::READ)) {
if (!f) {
ERR_EXPLAIN("Can't open pack-referenced file: " + String(pf.pack));
ERR_FAIL_COND(!f);