Nicolas Cannasse 19 년 전
부모
커밋
fbc6e226e3
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      genswf9.ml

+ 3 - 2
genswf9.ml

@@ -890,9 +890,10 @@ and generate_function ctx fdata stat =
 	write ctx A3This;
 	write ctx A3Scope;
 	gen_expr ctx false fdata.tf_expr;	
-	write ctx A3RetVoid;
+	write ctx A3RetVoid;	
+	let id = f() in
 	ctx.in_static <- old_stat;
-	f()
+	id
 
 let generate_construct ctx args =
 	let f = begin_fun ctx args [] in