Browse Source

Make `randbase` member protected in `RandomNumberGenerator`

Allows to extend `RandomNumberGenerator` via C++ modules.

(cherry picked from commit 1923f0d3027ce92e4d42f0436d90beea0c0dee3e)
Andrii Doroshenko (Xrayez) 5 years ago
parent
commit
943db2ca34
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/math/random_number_generator.h

+ 1 - 1
core/math/random_number_generator.h

@@ -37,9 +37,9 @@
 class RandomNumberGenerator : public Reference {
 	GDCLASS(RandomNumberGenerator, Reference);
 
+protected:
 	RandomPCG randbase;
 
-protected:
 	static void _bind_methods();
 
 public: