瀏覽代碼

Fixed "Tiny" test accidental size increase

Brian Fiete 4 月之前
父節點
當前提交
3263d1a849
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      BeefLibs/corlib/src/Runtime.bf

+ 4 - 0
BeefLibs/corlib/src/Runtime.bf

@@ -153,12 +153,16 @@ namespace System
 
 			static void* ClassVData_GetTypeData(ClassVData* classVData)
 			{
+#if BF_DBG_RUNTIME
 #if BF_32_BIT
 				Type type = Type.[Friend]GetType_(classVData.mType2);
 #else
 				Type type = Type.[Friend]GetType_((.)(classVData.mType >> 32));
 #endif
 				return &type.[Friend]mSize;
+#else
+				return null;
+#endif
 			}
 
 			static Type Object_GetType(Object obj)