Browse Source

Fixed null label copy.

woollybah 8 years ago
parent
commit
be706cedc3
1 changed files with 5 additions and 1 deletions
  1. 5 1
      stmt.bmx

+ 5 - 1
stmt.bmx

@@ -382,7 +382,11 @@ Type TBreakStmt Extends TStmt
 	End Method
 	End Method
 
 
 	Method OnCopy:TStmt( scope:TScopeDecl )
 	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
 	End Method
 	
 	
 	Method Trans$()
 	Method Trans$()