Browse Source

Fixed globals munging.

woollybah 6 years ago
parent
commit
96afde5e76
1 changed files with 1 additions and 1 deletions
  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