From bce56cf33797391df02453db90438f5b03e3d39b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 7 Mar 2019 22:45:47 +0100 Subject: Fix -Wc++11-extensions warning after #26737 Fixes #26769. --- core/math/random_pcg.cpp | 3 ++- core/math/random_pcg.h | 2 +- 2 files changed, 3 insertions(+), 2 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); } diff --git a/core/math/random_pcg.h b/core/math/random_pcg.h index f6cc3db595..230eb9a11b 100644 --- a/core/math/random_pcg.h +++ b/core/math/random_pcg.h @@ -37,7 +37,7 @@ class RandomPCG { pcg32_random_t pcg; - uint64_t current_seed = DEFAULT_SEED; // seed with this to get the same state + uint64_t current_seed; // seed with this to get the same state public: static const uint64_t DEFAULT_SEED = 12047754176567800795U; -- cgit v1.2.3