Browse Source

minor fix

ncannasse 10 năm trước cách đây
mục cha
commit
5a772eccc4
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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();
 		};