From 003bb8e1a8c9bb81e3cb0733b3f0d569b1518881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mikrut?= Date: Sun, 7 Feb 2021 22:29:31 +0100 Subject: Initialize class variables with default values in scene/ [1/2] --- scene/2d/touch_screen_button.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scene/2d/touch_screen_button.h') diff --git a/scene/2d/touch_screen_button.h b/scene/2d/touch_screen_button.h index f4ae3ca26c..10820ad059 100644 --- a/scene/2d/touch_screen_button.h +++ b/scene/2d/touch_screen_button.h @@ -50,16 +50,16 @@ private: Ref texture_pressed; Ref bitmask; Ref shape; - bool shape_centered; - bool shape_visible; + bool shape_centered = true; + bool shape_visible = true; Ref unit_rect; StringName action; - bool passby_press; - int finger_pressed; + bool passby_press = false; + int finger_pressed = -1; - VisibilityMode visibility; + VisibilityMode visibility = VISIBILITY_ALWAYS; void _input(const Ref &p_event); -- cgit v1.2.3