浏览代码

minor fix

ncannasse 10 年之前
父节点
当前提交
5a772eccc4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      hxd/App.hx

+ 1 - 0
hxd/App.hx

@@ -25,6 +25,7 @@ class App {
 
 	function setup() {
 		engine.onResized = function() {
+			if( s2d == null ) return; // if disposed
 			s2d.checkResize();
 			onResize();
 		};