Ver código fonte

Fixed null label copy.

woollybah 8 anos atrás
pai
commit
be706cedc3
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      stmt.bmx

+ 5 - 1
stmt.bmx

@@ -382,7 +382,11 @@ Type TBreakStmt Extends TStmt
 	End Method
 
 	Method OnCopy:TStmt( scope:TScopeDecl )
-		Return New TBreakStmt.Create(label.Copy())
+		If label Then
+			Return New TBreakStmt.Create(label.Copy())
+		Else
+			Return New TBreakStmt.Create(Null)
+		End If
 	End Method
 	
 	Method Trans$()