浏览代码

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;
 	}
 
-	public function wait( time : Float, callb ) {
+	public function wait( time : Float, callb : Void -> Void ) {
 		function tmp(dt:Float) {
 			time -= dt;
 			if( time < 0 ) {