Jelajahi Sumber

Optional parameter fix

deepnight 9 tahun lalu
induk
melakukan
e76c5b8dd9
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      hxd/res/Sound.hx

+ 1 - 1
hxd/res/Sound.hx

@@ -46,7 +46,7 @@ class Sound extends Resource {
 		}
 	}
 
-	public function play( loop = false, volume = 1. ) {
+	public function play( ?loop = false, volume = 1. ) {
 		lastPlay = haxe.Timer.stamp();
 		return channel = getWorker().play(this, loop, volume);
 	}