v0.4.1: fixed crashes on floor 26

This commit is contained in:
Evan Debenham 2016-07-12 23:05:24 -04:00 committed by Evan Debenham
parent 000bb27b8c
commit 9c44d1d7cb

View File

@ -265,7 +265,7 @@ public class StatusPane extends Component {
boolean blackKey = false;
boolean specialKey = false;
int ironKeys = 0;
for (int i = 1; i <= Dungeon.depth; i++) {
for (int i = 1; i <= Math.min(Dungeon.depth, 25); i++) {
if (Dungeon.hero.belongings.ironKeys[i] > 0 || Dungeon.hero.belongings.specialKeys[i] > 0) {
foundKeys = true;