Explorar el Código

prevent bug if first callback passed is not Void->Void

Nicolas Cannasse hace 3 años
padre
commit
0d969edbb6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      hxd/WaitEvent.hx

+ 1 - 1
hxd/WaitEvent.hx

@@ -29,7 +29,7 @@ class WaitEvent {
 		return false;
 	}
 
-	public function wait( time : Float, callb ) {
+	public function wait( time : Float, callb : Void -> Void ) {
 		function tmp(dt:Float) {
 			time -= dt;
 			if( time < 0 ) {