Merge pull request #4638 from spjspj/master

Fix for mana symbols indexoutofbounds exception
This commit is contained in:
spjspj 2018-03-19 21:18:20 +11:00 committed by GitHub
commit da7bca48df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}