From be14f065d1c7f42f96516c7cc1345243f4c51b43 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Sun, 14 Feb 2021 01:12:30 +0200 Subject: [PATCH] Fix uninitialized `BaseMaterial3D::features` variable. --- scene/resources/material.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/resources/material.h b/scene/resources/material.h index 595db36a578..70452a5f741 100644 --- a/scene/resources/material.h +++ b/scene/resources/material.h @@ -519,7 +519,7 @@ private: AlphaAntiAliasing alpha_antialiasing_mode = ALPHA_ANTIALIASING_OFF; - bool features[FEATURE_MAX]; + bool features[FEATURE_MAX] = {}; Ref textures[TEXTURE_MAX];