Browse Source

Surround System.gRand static initializer with #if !BF_RUNTIME_DISABLE

Hunter Bridges 2 weeks ago
parent
commit
0fa00f29b6
1 changed files with 2 additions and 0 deletions
  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
 	static
 	{
 	{
 		public static Random gRand = new Random() ~ delete _;
 		public static Random gRand = new Random() ~ delete _;
 	}
 	}
+#endif
 }
 }