浏览代码

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