From e9b0a20482ea067ccf406aa2f6f13619aecbf388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Bond=C3=AC?= Date: Sat, 29 Feb 2020 22:40:20 +0100 Subject: [PATCH] Fixed deprecation warning about variable shadowing --- src/dlangui/graphics/scene/scene3d.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dlangui/graphics/scene/scene3d.d b/src/dlangui/graphics/scene/scene3d.d index 98194dd3..acb3ea1f 100644 --- a/src/dlangui/graphics/scene/scene3d.d +++ b/src/dlangui/graphics/scene/scene3d.d @@ -120,7 +120,7 @@ bool visit(Node3d node, bool delegate(Node3d node) visitor) { if (res) return true; foreach(child; node.children) { - bool res = visit(child, visitor); + res = visit(child, visitor); if (res) return true; }