diff options
author | Max-001 <80035972+Max-001@users.noreply.github.com> | 2024-12-11 14:14:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-11 14:14:43 +0100 |
commit | 78c4a8772526f40c531b5402b56932b0a41e22e8 (patch) | |
tree | 7305c4f88bf177cb8dd704eb9363d3935325804f /src/crepe/manager/SaveManager.cpp | |
parent | c45b60941b82dec2097d958b396a117b1634eada (diff) | |
parent | 0dbbbe4bac4ad4fcb9e88908034e90000056363e (diff) |
Merge pull request #68 from lonkaars/max/AI
Max/ai
Diffstat (limited to 'src/crepe/manager/SaveManager.cpp')
-rw-r--r-- | src/crepe/manager/SaveManager.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/crepe/manager/SaveManager.cpp b/src/crepe/manager/SaveManager.cpp index 39b92d4..691ea2f 100644 --- a/src/crepe/manager/SaveManager.cpp +++ b/src/crepe/manager/SaveManager.cpp @@ -14,10 +14,8 @@ SaveManager::SaveManager(Mediator & mediator) : Manager(mediator) { DB & SaveManager::get_db() { if (this->db == nullptr) { Config & cfg = Config::get_instance(); - this->db = { - new DB(cfg.savemgr.location), - [](void * db){ delete static_cast<DB *>(db); } - }; + this->db + = {new DB(cfg.savemgr.location), [](void * db) { delete static_cast<DB *>(db); }}; } return *static_cast<DB *>(this->db.get()); } |