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/parallax_layer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/2d/parallax_layer.h') diff --git a/scene/2d/parallax_layer.h b/scene/2d/parallax_layer.h index b6895b0aca..86694c7724 100644 --- a/scene/2d/parallax_layer.h +++ b/scene/2d/parallax_layer.h @@ -38,7 +38,7 @@ class ParallaxLayer : public Node2D { Point2 orig_offset; Point2 orig_scale; - Size2 motion_scale; + Size2 motion_scale = Size2(1, 1); Vector2 motion_offset; Vector2 mirroring; void _update_mirroring(); -- cgit v1.2.3