Преглед изворни кода

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

Nicolas Cannasse пре 3 година
родитељ
комит
0d969edbb6
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      hxd/WaitEvent.hx

+ 1 - 1
hxd/WaitEvent.hx

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