mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Fix for mana symbols indexoutofbounds exception
This commit is contained in:
parent
b046428f8c
commit
de6eb6ece1
1 changed files with 1 additions and 1 deletions
|
@ -611,7 +611,7 @@ public final class ManaSymbols {
|
|||
while (tok.hasMoreTokens()) {
|
||||
String symbol = tok.nextToken();
|
||||
Image image = sizedSymbols.get(symbol);
|
||||
if (image == null && symbol != null) {
|
||||
if (image == null && symbol != null && symbol.length() == 2) {
|
||||
String symbol2 = "" + symbol.charAt(1) + symbol.charAt(0);
|
||||
image = sizedSymbols.get(symbol2);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue