Nicolas Cannasse 19 years ago
parent
commit
fbc6e226e3
1 changed files with 3 additions and 2 deletions
  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