1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-03-22 18:09:33 +00:00

Fix null safety compiling

This commit is contained in:
gamerbross 2024-06-29 22:54:25 +02:00 committed by GitHub
parent 91bc63004a
commit 09c8a2600e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -535,9 +535,9 @@ class FunkinSound extends FlxSound implements ICloneable<FunkinSound>
* @param volume
* @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:Null<FunkinSound> = FunkinSound.load(key, volume, false, true, true, onComplete, onLoad);
return result;
}