Explorar el Código

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

Justin Donaldson hace 9 años
padre
commit
7c1d601875
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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";