Commit 886da13d authored by nanahira's avatar nanahira

fix

parent 2cdcb7b1
Pipeline #43758 passed with stages
in 9 minutes and 45 seconds
......@@ -162,6 +162,7 @@ void DeckManager::LoadLFList() {
nolimit.hash = 0;
_lfList.push_back(nolimit);
}
#ifndef YGOPRO_SERVER_MODE
const wchar_t* DeckManager::GetLFListName(unsigned int lfhash) {
auto lit = std::find_if(_lfList.begin(), _lfList.end(), [lfhash](const ygo::LFList& list) {
return list.hash == lfhash;
......@@ -170,6 +171,7 @@ const wchar_t* DeckManager::GetLFListName(unsigned int lfhash) {
return lit->listName.c_str();
return dataManager.unknown_string;
}
#endif
const LFList* DeckManager::GetLFList(unsigned int lfhash) {
auto lit = std::find_if(_lfList.begin(), _lfList.end(), [lfhash](const ygo::LFList& list) {
return list.hash == lfhash;
......
......@@ -66,7 +66,9 @@ public:
void LoadLFListSingle(irr::io::IReadFile* reader, bool insert = false);
#endif
void LoadLFList();
#ifndef YGOPRO_SERVER_MODE
const wchar_t* GetLFListName(unsigned int lfhash);
#endif
const LFList* GetLFList(unsigned int lfhash);
unsigned int CheckDeck(const Deck& deck, unsigned int lfhash, int rule);
#ifndef YGOPRO_SERVER_MODE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment