Skip to content

Commit

Permalink
chart editor inst only songs fix or whatevs
Browse files Browse the repository at this point in the history
  • Loading branch information
KoloInDaCrib committed Dec 10, 2024
1 parent 0d8e4a5 commit e4564e0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class ChartEditorAudioHandler
*/
public static function loadVocalsFromAsset(state:ChartEditorState, path:String, charId:String, instId:String = '', wipeFirst:Bool = false):Bool
{
var trackData:Null<Bytes> = Assets.getBytes(path);
var trackData:Null<Bytes> = Assets.exists(path) ? Assets.getBytes(path) : null;
if (trackData != null)
{
return loadVocalsFromBytes(state, trackData, charId, instId, wipeFirst);
Expand Down Expand Up @@ -102,7 +102,7 @@ class ChartEditorAudioHandler
*/
public static function loadInstFromAsset(state:ChartEditorState, path:String, instId:String = '', wipeFirst:Bool = false):Bool
{
var trackData:Null<Bytes> = Assets.getBytes(path);
var trackData:Null<Bytes> = Assets.exists(path) ? Assets.getBytes(path) : null;
if (trackData != null)
{
return loadInstFromBytes(state, trackData, instId, wipeFirst);
Expand Down

0 comments on commit e4564e0

Please sign in to comment.