From 8b31937dc82ab834c8594c5499fa052d642a2f89 Mon Sep 17 00:00:00 2001 From: Jopestpe <47086979+Jopestpe@users.noreply.github.com> Date: Mon, 6 Oct 2025 17:30:19 -0300 Subject: [PATCH] follow the conventions 2 --- examples/shapes/shapes_recursive_tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/shapes/shapes_recursive_tree.c b/examples/shapes/shapes_recursive_tree.c index 385aa6a42..3ec46de4b 100644 --- a/examples/shapes/shapes_recursive_tree.c +++ b/examples/shapes/shapes_recursive_tree.c @@ -67,7 +67,7 @@ int main(void) float theta = angle*DEG2RAD; int maxBranches = (int)(powf(2, (int)(treeDepth))); - Branch branches[1024]; + Branch branches[1024] = { 0 }; int count = 0; Vector2 initialEnd = CalculateBranchEnd(start, 0.0f, length); @@ -78,7 +78,7 @@ int main(void) Branch branch = branches[i]; if (branch.length < 2) continue; - float nextLength = branch.length * branchDecay; + float nextLength = branch.length*branchDecay; if (count < maxBranches && nextLength >= 2) {