mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
Merge branch 'indexofoutboundsfix' into 'master'
Mobile: Fix IndexOutOfBoundsException bug trying to get a card that doesn't exist. See merge request core-developers/forge!2174
This commit is contained in:
@@ -190,9 +190,11 @@ public abstract class VCardDisplayArea extends VDisplayArea implements ActivateH
|
||||
@Override
|
||||
public void setSelectedIndex(int index) {
|
||||
//just scroll card into view
|
||||
if (index < orderedCards.size()) {
|
||||
final CardAreaPanel cardPanel = CardAreaPanel.get(orderedCards.get(index));
|
||||
scrollIntoView(cardPanel);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void activate(int index) {
|
||||
|
||||
Reference in New Issue
Block a user