Ver código fonte

Surround System.gRand static initializer with #if !BF_RUNTIME_DISABLE

Hunter Bridges 2 meses atrás
pai
commit
0fa00f29b6
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
 }