Skip to content

Commit

Permalink
Added implementation to fix indexing of weapon array in cheats.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmamickas committed Oct 23, 2021
1 parent da6ab53 commit d3d5859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/hotmail/kalebmarc/textfighter/main/Cheats.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private static void cheatSelect() {
Potion.set("Recovery", 5000, false);
break;
case "weaponstash":
for (int i = 0; i <= Weapon.arrayWeapon.size(); i++) {
for (int i = 0; i < Weapon.arrayWeapon.size(); i++) {
Weapon.arrayWeapon.get(i).setAmmo(5000, false);
}

Expand Down

0 comments on commit d3d5859

Please sign in to comment.