浏览代码

fixed log clear without previous log

Nicolas Cannasse 18 年之前
父节点
当前提交
d1dcf60df7
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      std/flash9/Boot.hx

+ 2 - 0
std/flash9/Boot.hx

@@ -81,6 +81,8 @@ class Boot extends flash.display.MovieClip {
 	}
 
 	public static function __clear_trace() {
+		if( tf == null )
+			return;
 		flash.Lib.current.removeChild(tf);
 		tf = null;
 		lines = new Array();