Browse Source

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

Nicolas Cannasse 3 years ago
parent
commit
0d969edbb6
1 changed files with 1 additions and 1 deletions
  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 ) {