Browse Source

L3D: Fix exception on clicks during loading

trethaller 6 years ago
parent
commit
4f13b56803
1 changed files with 1 additions and 0 deletions
  1. 1 0
      hide/view/l3d/Level3D.hx

+ 1 - 0
hide/view/l3d/Level3D.hx

@@ -29,6 +29,7 @@ class CamController extends h3d.scene.CameraController {
 	}
 
 	override function onEvent( e : hxd.Event ) {
+		if(curPos == null) return;
 		switch( e.kind ) {
 		case EWheel:
 			zoom(e.wheelDelta);