Commit 00d46b2c authored by Chen Bill's avatar Chen Bill

use deck category constant

Co-authored-by: default avatarCopilot <175728472+Copilot@users.noreply.github.com>
parent 09b4854e
...@@ -324,7 +324,7 @@ bool DeckManager::LoadCurrentDeck(int category_index, const wchar_t* category_na ...@@ -324,7 +324,7 @@ bool DeckManager::LoadCurrentDeck(int category_index, const wchar_t* category_na
current_deck.clear(); current_deck.clear();
return false; return false;
} }
bool is_packlist = (category_index == 0); bool is_packlist = (category_index == DECK_CATEGORY_PACK);
if(!LoadCurrentDeck(filepath, is_packlist)) if(!LoadCurrentDeck(filepath, is_packlist))
return false; return false;
if (mainGame->is_building) if (mainGame->is_building)
......
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