mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Fixing ArrayIndexOutOfBound errors when loading up the deck editor or using a deck.
This commit is contained in:
@@ -2368,7 +2368,7 @@ public class GameAction {
|
||||
String setCode = "";
|
||||
if (cardName.contains("|"))
|
||||
{
|
||||
String s[] = cardName.split("\\|");
|
||||
String s[] = cardName.split("\\|",2);
|
||||
cardName = s[0];
|
||||
setCode = s[1];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user