Commit 8eccc80f authored by argon.sun's avatar argon.sun

bug fix

parent 8c64b588
......@@ -102,6 +102,10 @@ void DeckManager::LoadDeck(Deck& deck, int* dbuf, int mainc, int sidec) {
}
for(int i = 0; i < sidec; ++i) {
code = dbuf[mainc + i];
if(!mainGame->dataManager.GetData(code, &cd))
continue;
if(cd.type & TYPE_TOKEN)
continue;
if(deck.side.size() < 15)
deck.side.push_back(mainGame->dataManager.GetCodePointer(code));
}
......
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