diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/GoldenKey.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/GoldenKey.java index b53e76941..423da1fd9 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/GoldenKey.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/GoldenKey.java @@ -32,7 +32,7 @@ public class GoldenKey extends Key { @Override public boolean doPickUp(Hero hero) { - Dungeon.hero.belongings.specialKeys[Dungeon.depth]++; + Dungeon.hero.belongings.specialKeys[depth]++; return super.doPickUp(hero); } diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/IronKey.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/IronKey.java index 59c598bdc..1a3955b72 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/IronKey.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/keys/IronKey.java @@ -34,7 +34,7 @@ public class IronKey extends Key { @Override public boolean doPickUp(Hero hero) { - Dungeon.hero.belongings.ironKeys[Dungeon.depth]++; + Dungeon.hero.belongings.ironKeys[depth]++; return super.doPickUp(hero); }