Explorar el Código

Surround System.gRand static initializer with #if !BF_RUNTIME_DISABLE

Hunter Bridges hace 2 semanas
padre
commit
0fa00f29b6
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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
 }