summaryrefslogtreecommitdiff
path: root/src/storage/StorageState.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage/StorageState.cxx')
-rw-r--r--src/storage/StorageState.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/StorageState.cxx b/src/storage/StorageState.cxx
index 5cf2f4428..eea57fa26 100644
--- a/src/storage/StorageState.cxx
+++ b/src/storage/StorageState.cxx
@@ -106,7 +106,7 @@ storage_state_restore(const char *line, TextFile &file, Instance &instance)
return true;
}
- if (auto *db = dynamic_cast<SimpleDatabase *>(instance.database)) {
+ if (auto *db = dynamic_cast<SimpleDatabase *>(instance.GetDatabase())) {
try {
db->Mount(uri.c_str(), url.c_str());
} catch (...) {