mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-10 04:16:43 -07:00
one more usage
This commit is contained in:
parent
762dd8d85a
commit
6e8fc116b0
1 changed files with 1 additions and 4 deletions
|
|
@ -343,10 +343,7 @@ void DeckViewScene::rebuildTree()
|
||||||
if (!deck)
|
if (!deck)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
InnerDecklistNode *listRoot = deck->getRoot();
|
for (auto *currentZone : deck->getZoneNodes()) {
|
||||||
for (int i = 0; i < listRoot->size(); i++) {
|
|
||||||
auto *currentZone = dynamic_cast<InnerDecklistNode *>(listRoot->at(i));
|
|
||||||
|
|
||||||
DeckViewCardContainer *container = cardContainers.value(currentZone->getName(), 0);
|
DeckViewCardContainer *container = cardContainers.value(currentZone->getName(), 0);
|
||||||
if (!container) {
|
if (!container) {
|
||||||
container = new DeckViewCardContainer(currentZone->getName());
|
container = new DeckViewCardContainer(currentZone->getName());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue