瀏覽代碼

Fixed globals munging.

woollybah 6 年之前
父節點
當前提交
96afde5e76
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      translator.bmx

+ 1 - 1
translator.bmx

@@ -509,7 +509,7 @@ Type TTranslator
 			munged = id
 		Else
 
-			If TModuleDecl( decl.scope )
+			If TModuleDecl( decl.scope ) Or (TGlobalDecl(decl) And TModuleDecl(TGlobalDecl(decl).mscope))
 				munged=decl.ModuleScope().munged+"_"+id
 				
 				If TClassDecl(decl) And TClassDecl(decl).instArgs Then