v0.4.1: fixed crashes on floor 26
This commit is contained in:
parent
000bb27b8c
commit
9c44d1d7cb
|
@ -265,7 +265,7 @@ public class StatusPane extends Component {
|
||||||
boolean blackKey = false;
|
boolean blackKey = false;
|
||||||
boolean specialKey = false;
|
boolean specialKey = false;
|
||||||
int ironKeys = 0;
|
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) {
|
if (Dungeon.hero.belongings.ironKeys[i] > 0 || Dungeon.hero.belongings.specialKeys[i] > 0) {
|
||||||
foundKeys = true;
|
foundKeys = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user