Browse Source

Explicitly initialize value of particle parameter. Fixes #12621.

x2048 1 year ago
parent
commit
644f145ff2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/particles.h

+ 1 - 1
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;