1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Initialize class/struct variables with default values in core/ and drivers/

This commit is contained in:
Rafał Mikrut
2020-11-23 17:38:46 +01:00
parent 18023cc3ed
commit 7bd03b7188
34 changed files with 221 additions and 228 deletions

View File

@@ -542,9 +542,9 @@ void _OS::dump_memory_to_file(const String &p_file) {
struct _OSCoreBindImg {
String path;
Size2 size;
int fmt;
int fmt = 0;
ObjectID id;
int vram;
int vram = 0;
bool operator<(const _OSCoreBindImg &p_img) const { return vram == p_img.vram ? id < p_img.id : vram > p_img.vram; }
};