mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-03-28 04:50:01 +00:00
Fix null safety error.
This commit is contained in:
parent
03eab140f1
commit
62501a1ded
|
@ -537,7 +537,7 @@ class FunkinSound extends FlxSound implements ICloneable<FunkinSound>
|
||||||
* @param volume
|
* @param volume
|
||||||
* @return A `FunkinSound` object, or `null` if the sound could not be loaded.
|
* @return A `FunkinSound` object, or `null` if the sound could not be loaded.
|
||||||
*/
|
*/
|
||||||
public static function playOnce(key:String, volume:Float = 1.0, ?onComplete:Void->Void, ?onLoad:Void->Void):FunkinSound
|
public static function playOnce(key:String, volume:Float = 1.0, ?onComplete:Void->Void, ?onLoad:Void->Void):Null<FunkinSound>
|
||||||
{
|
{
|
||||||
var result = FunkinSound.load(key, volume, false, true, true, onComplete, onLoad);
|
var result = FunkinSound.load(key, volume, false, true, true, onComplete, onLoad);
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in a new issue