소스 검색

Lua: Type.createEnum needs to be called with a null object

Justin Donaldson 9 년 전
부모
커밋
7c1d601875
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      std/lua/_std/Type.hx

+ 1 - 1
std/lua/_std/Type.hx

@@ -117,7 +117,7 @@ enum ValueType {
 		if( f == null ) throw "No such constructor "+constr;
 		if( Reflect.isFunction(f) ) {
 			if( params == null ) throw "Constructor "+constr+" need parameters";
-			return Reflect.callMethod(e,f,params);
+			return Reflect.callMethod(null,f,params);
 		}
 		if( params != null && params.length != 0 )
 			throw "Constructor "+constr+" does not need parameters";