diff options
author | x2048 <codeforsmile@gmail.com> | 2022-08-02 23:51:50 +0200 |
---|---|---|
committer | x2048 <codeforsmile@gmail.com> | 2022-08-02 23:51:50 +0200 |
commit | 644f145ff260c6f9cf0e351d158c045019aa895d (patch) | |
tree | 22fcb9022b39dfc5857f4935a3cdee0733dfcb9d /src | |
parent | a81259d19a434752614e5a430fdebf86f07c1cfc (diff) | |
download | minetest-644f145ff260c6f9cf0e351d158c045019aa895d.tar.gz minetest-644f145ff260c6f9cf0e351d158c045019aa895d.tar.bz2 minetest-644f145ff260c6f9cf0e351d158c045019aa895d.zip |
Explicitly initialize value of particle parameter. Fixes #12621.
Diffstat (limited to 'src')
-rw-r--r-- | src/particles.h | 2 |
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; |