summaryrefslogtreecommitdiffstats
path: root/core/math/random_pcg.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-03-07 22:45:47 +0100
committerRémi Verschelde <rverschelde@gmail.com>2019-03-07 22:48:00 +0100
commitbce56cf33797391df02453db90438f5b03e3d39b (patch)
tree40b34c66e77e553ba4426133970559dd8fcfbf98 /core/math/random_pcg.cpp
parent91fb8070886446aca8d859460d35c3b47db704d2 (diff)
downloadredot-engine-bce56cf33797391df02453db90438f5b03e3d39b.tar.gz
Fix -Wc++11-extensions warning after #26737
Fixes #26769.
Diffstat (limited to 'core/math/random_pcg.cpp')
-rw-r--r--core/math/random_pcg.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/math/random_pcg.cpp b/core/math/random_pcg.cpp
index 8c324414e6..45467b32b2 100644
--- a/core/math/random_pcg.cpp
+++ b/core/math/random_pcg.cpp
@@ -33,7 +33,8 @@
#include "core/os/os.h"
RandomPCG::RandomPCG(uint64_t p_seed, uint64_t p_inc) :
- pcg() {
+ pcg(),
+ current_seed(DEFAULT_SEED) {
pcg.inc = p_inc;
seed(p_seed);
}