Commit b188bece authored by fallenstardust's avatar fallenstardust

fix新建分类时因卡组为空闪退

parent 6003cbb4
...@@ -465,6 +465,10 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) { ...@@ -465,6 +465,10 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
} }
} }
} }
if(mainGame->cbCategorySelect->getSelected() == -1 || mainGame->cbDeckSelect->getSelected() == -1 ||
!deckManager.LoadDeck(mainGame->cbCategorySelect, mainGame->cbDeckSelect))
break;
if(catesel > 0) { if(catesel > 0) {
mainGame->lstCategories->setSelected(catesel); mainGame->lstCategories->setSelected(catesel);
refreshDeckList(); refreshDeckList();
......
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