Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed May 15, 2019
1 parent e0dc0a0 commit 4cb2763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion retail/bootloader/source/arm7/hook_arm7.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ int hookNdsRetailArm7(
}

aFile cheatFile = getFileFromCluster(cheatFileCluster);
if (cheatFile.firstCluster != CLUSTER_FREE && cheatSize < 0x8000) {
if (cheatFile.firstCluster != CLUSTER_FREE && cheatSize <= 0x8000) {
fileRead(ce7->cheat_data_offset, cheatFile, 0, cheatSize, 0);
}

Expand Down

0 comments on commit 4cb2763

Please sign in to comment.