Skip to content

Commit

Permalink
The range is the end, not desired length
Browse files Browse the repository at this point in the history
  • Loading branch information
AbandonedCart authored Nov 28, 2024
1 parent 09b4a29 commit 3a16e0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AppDataMLPaperJam(appData: ByteArray?) : AppData(appData!!) {
private val sparkleCardBytes = sparkleCardHex.toHexByteArray()

fun checkSparkleCards(): Boolean {
val sparkleCardData = appData.array().copyOfRange(SPARKLE_CARD_OFFSET, sparkleCardBytes.size)
val sparkleCardData = appData.array().copyOfRange(SPARKLE_CARD_OFFSET, SPARKLE_CARD_OFFSET + sparkleCardBytes.size)
return sparkleCardData.contentEquals(sparkleCardBytes)
}
fun unlockSparkleCards() {
Expand Down

0 comments on commit 3a16e0d

Please sign in to comment.