aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorx2048 <codeforsmile@gmail.com>2022-08-02 23:51:50 +0200
committerx2048 <codeforsmile@gmail.com>2022-08-02 23:51:50 +0200
commit644f145ff260c6f9cf0e351d158c045019aa895d (patch)
tree22fcb9022b39dfc5857f4935a3cdee0733dfcb9d
parenta81259d19a434752614e5a430fdebf86f07c1cfc (diff)
downloadhax-minetest-server-644f145ff260c6f9cf0e351d158c045019aa895d.tar.gz
hax-minetest-server-644f145ff260c6f9cf0e351d158c045019aa895d.zip
Explicitly initialize value of particle parameter. Fixes #12621.
-rw-r--r--src/particles.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/particles.h b/src/particles.h
index 74bfa7fce..3061deb83 100644
--- a/src/particles.h
+++ b/src/particles.h
@@ -91,7 +91,7 @@ namespace ParticleParamTypes
using ValType = T;
using pickFactors = float[PN];
- T val;
+ T val = T();
using This = Parameter<T, PN>;
Parameter() = default;