Selaa lähdekoodia

Fixed null object use.

woollybah 7 vuotta sitten
vanhempi
commit
51e8a78793
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      expr.bmx

+ 1 - 1
expr.bmx

@@ -814,7 +814,7 @@ Type TNewObjectExpr Extends TExpr
 		Local it:TIdentType = TIdentType(ty)
 		Local it:TIdentType = TIdentType(ty)
 		Local iArgs:TExpr[] = SemantArgs(CopyArgs(args))
 		Local iArgs:TExpr[] = SemantArgs(CopyArgs(args))
 
 
-		Local isNewSelf:Int = (it.ident = "self")
+		Local isNewSelf:Int = (it And it.ident = "self")
 		
 		
 		ty=ty.Semant(True)
 		ty=ty.Semant(True)
 		If Not ty Then
 		If Not ty Then