From 3ee6741fcbf0e158392e54da970efc2013f091f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Sat, 25 Jan 2025 23:59:19 +0100 Subject: [PATCH] Fix PIPE rendering garbage when carrying PIPE Broken since 0f1218df0ca3 where I neglected to port a memset over. --- src/simulation/elements/PIPE.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/elements/PIPE.cpp b/src/simulation/elements/PIPE.cpp index 91d0b2c0f..efd04faf5 100644 --- a/src/simulation/elements/PIPE.cpp +++ b/src/simulation/elements/PIPE.cpp @@ -381,7 +381,7 @@ int Element_PIPE_graphics(GRAPHICS_FUNC_ARGS) auto *graphics = elements[t].Graphics; if (graphics) { - Particle tpart; + Particle tpart{}; props_pipe_to_part(cpart, &tpart, false); auto *prevPipeSubcallCpart = gfctx.pipeSubcallCpart; auto *prevPipeSubcallTpart = gfctx.pipeSubcallTpart;