Sfoglia il codice sorgente

Optional parameter fix

deepnight 9 anni fa
parent
commit
e76c5b8dd9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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);
 	}