mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
turns out reorganizeCards is not needed if the view doesn't change
This commit is contained in:
parent
57ef80d82d
commit
0ed883883a
1 changed files with 0 additions and 2 deletions
|
|
@ -288,7 +288,6 @@ void ZoneViewZone::addCardImpl(CardItem *card, int x, int /*y*/)
|
|||
cards.append(card);
|
||||
} else {
|
||||
updateCardIds(ADD_CARD);
|
||||
reorganizeCards();
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
|
|
@ -327,7 +326,6 @@ void ZoneViewZone::removeCard(int position)
|
|||
position -= cards.first()->getId();
|
||||
if (position < 0 || position >= cards.size()) {
|
||||
updateCardIds(REMOVE_CARD);
|
||||
reorganizeCards();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue