From 37a2a5a99789d2ec7cfed616ee11d5560143faac Mon Sep 17 00:00:00 2001 From: Andy Maloney Date: Fri, 19 Jun 2020 11:36:28 -0400 Subject: Ensure FileAccessBuffered structs are properly initialized --- core/io/file_access_buffered.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core') diff --git a/core/io/file_access_buffered.h b/core/io/file_access_buffered.h index 61c0fa7489..99d5ce903d 100644 --- a/core/io/file_access_buffered.h +++ b/core/io/file_access_buffered.h @@ -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 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; -- cgit v1.2.3