summaryrefslogtreecommitdiff
path: root/src/StateFile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/StateFile.cxx')
-rw-r--r--src/StateFile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StateFile.cxx b/src/StateFile.cxx
index 4dd4d449b..b8ad82e01 100644
--- a/src/StateFile.cxx
+++ b/src/StateFile.cxx
@@ -119,7 +119,7 @@ try {
TextFile file(config.path);
#ifdef ENABLE_DATABASE
- const SongLoader song_loader(partition.instance.database,
+ const SongLoader song_loader(partition.instance.GetDatabase(),
partition.instance.storage);
#else
const SongLoader song_loader(nullptr, nullptr);