Browse Source

sandbox fix

Nicolas Cannasse 19 years ago
parent
commit
314dec208f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      genswf8.ml

+ 1 - 1
genswf8.ml

@@ -1437,7 +1437,7 @@ let generate file ver header infile types hres =
 		| None ->
 			let header , bg = (match header with None -> default_header ver | Some h -> convert_header ver h) in
 			let tagbg = tag (TSetBgColor { cr = bg lsr 16; cg = (bg lsr 8) land 0xFF; cb = bg land 0xFF }) in
-			let tagstart = (if ver >= 8 then [tag (TSandbox SBLocal);tagbg] else [tagbg]) in
+			let tagstart = (if ver >= 8 then [tag (TSandbox (if ver = 9 then SBUnknown 8 else SBLocal));tagbg] else [tagbg]) in
 			let tagshow = tag TShowFrame in
 			(header,tagstart @ tagclips() @ tag_code @ [tagshow])
 		| Some file ->