Commit 37a2a5a9 by Andy Maloney

Ensure FileAccessBuffered structs are properly initialized

parent 86878160
......@@ -51,16 +51,16 @@ protected:
Error set_error(Error p_error) const;
mutable struct File {
bool open;
int size;
int offset;
bool open = false;
int size = 0;
int offset = 0;
String name;
int access_flags;
int access_flags = 0;
} file;
mutable struct Cache {
Vector<uint8_t> buffer;
int offset;
int offset = 0;
} cache;
virtual int read_data_block(int p_offset, int p_size, uint8_t *p_dest = nullptr) const = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment