You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Moved member variables from constructor to initialization list
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user