diff --git a/source/funkin/ui/debug/charting/ChartEditorToolboxHandler.hx b/source/funkin/ui/debug/charting/ChartEditorToolboxHandler.hx index 6784b9cfc..5cace2ff6 100644 --- a/source/funkin/ui/debug/charting/ChartEditorToolboxHandler.hx +++ b/source/funkin/ui/debug/charting/ChartEditorToolboxHandler.hx @@ -374,11 +374,11 @@ class ChartEditorToolboxHandler var difficultyToolboxLoadChart:Button = toolbox.findComponent('difficultyToolboxLoadChart', Button); difficultyToolboxSaveMetadata.onClick = function(event:UIEvent) { - SongSerializer.exportSongMetadata(state.currentSongMetadata, state); + SongSerializer.exportSongMetadata(state.currentSongMetadata, state.currentSongId); }; difficultyToolboxSaveChart.onClick = function(event:UIEvent) { - SongSerializer.exportSongChartData(state.currentSongChartData, state); + SongSerializer.exportSongChartData(state.currentSongChartData, state.currentSongId); }; difficultyToolboxSaveAll.onClick = function(event:UIEvent) {