Explorar el Código

Optional parameter fix

deepnight hace 9 años
padre
commit
e76c5b8dd9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
 	}