Ver código fonte

Merge pull request #2288 from eveningstarinc/hunterbridges/RandomStaticInitDisable

Surround System.gRand static initializer with #if !BF_RUNTIME_DISABLE
Brian Fiete 2 semanas atrás
pai
commit
5f0468d724
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      BeefLibs/corlib/src/Random.bf

+ 2 - 0
BeefLibs/corlib/src/Random.bf

@@ -306,8 +306,10 @@ namespace System
 		}
 	}
 
+#if !BF_RUNTIME_DISABLE
 	static
 	{
 		public static Random gRand = new Random() ~ delete _;
 	}
+#endif
 }