ncannasse 10 vuotta sitten
vanhempi
commit
5a772eccc4
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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();
 		};