Skip to content

Commit

Permalink
default init initial card database to handle empty cases
Browse files Browse the repository at this point in the history
  • Loading branch information
DyXel committed Mar 12, 2024
1 parent a7d8ab6 commit 5ac03cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Multirole/Service/DataProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ namespace Ignis::Multirole

Service::DataProvider::DataProvider(Service::LogHandler& lh, std::string_view fnRegexStr) :
lh(lh),
fnRegex(fnRegexStr.data())
fnRegex(fnRegexStr.data()),
db(std::make_shared<YGOPro::CardDatabase>())
{}

std::shared_ptr<YGOPro::CardDatabase> Service::DataProvider::GetDatabase() const noexcept
Expand Down

0 comments on commit 5ac03cb

Please sign in to comment.