소스 검색

Fixed null object use.

woollybah 7 년 전
부모
커밋
51e8a78793
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      expr.bmx

+ 1 - 1
expr.bmx

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