mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
correct picture
This commit is contained in:
@@ -272,7 +272,7 @@ public class ImageCache {
|
|||||||
int artIdx = cp.getArtIndex();
|
int artIdx = cp.getArtIndex();
|
||||||
if (hasManyPictures) {
|
if (hasManyPictures) {
|
||||||
if ( cntPictures <= artIdx ) // prevent overflow
|
if ( cntPictures <= artIdx ) // prevent overflow
|
||||||
artIdx = cntPictures == 1 ? 0 : artIdx % cntPictures;
|
artIdx = cntPictures == 0 ? 0 : (artIdx - 1 ) % cntPictures;
|
||||||
s.append(artIdx + 1);
|
s.append(artIdx + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user