Sfoglia il codice sorgente

Make `randbase` member protected in `RandomNumberGenerator`

Allows to extend `RandomNumberGenerator` via C++ modules.
Andrii Doroshenko (Xrayez) 5 anni fa
parent
commit
1923f0d302
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 {
 class RandomNumberGenerator : public Reference {
 	GDCLASS(RandomNumberGenerator, Reference);
 	GDCLASS(RandomNumberGenerator, Reference);
 
 
+protected:
 	RandomPCG randbase;
 	RandomPCG randbase;
 
 
-protected:
 	static void _bind_methods();
 	static void _bind_methods();
 
 
 public:
 public: