Browse Source

[flash] minor

Dan Korostelev 6 years ago
parent
commit
ec7d1830f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/generators/genswf9.ml

+ 1 - 1
src/generators/genswf9.ml

@@ -2590,7 +2590,7 @@ let generate_class ctx c =
 			mark_has_protected c (* also mark this class with the meta for further child classes *)
 		end else if csup.cl_extern then begin
 			let rec loop csup =
-				if List.exists (fun cf -> Meta.has Meta.Protected cf.cf_meta) csup.cl_ordered_fields then begin
+				if List.exists is_cf_protected csup.cl_ordered_fields then begin
 					has_protected := Some (make_class_ns c);
 					mark_has_protected c; (* also mark this class with the meta for further child classes *)
 					mark_has_protected csup; (* ALSO mark the extern class for faster future checks *)