diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/sprites/ItemSprite.java b/src/com/shatteredpixel/shatteredpixeldungeon/sprites/ItemSprite.java index b1110d0fa..bec6e7711 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/sprites/ItemSprite.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/sprites/ItemSprite.java @@ -193,6 +193,10 @@ public class ItemSprite extends MovieClip { return this; } + public void frame( int image ){ + frame( film.get( image )); + } + @Override public void kill() { super.kill(); diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/ui/ItemSlot.java b/src/com/shatteredpixel/shatteredpixeldungeon/ui/ItemSlot.java index d888ca6a0..80a567a60 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/ui/ItemSlot.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/ui/ItemSlot.java @@ -142,6 +142,7 @@ public class ItemSlot extends Button { public void item( Item item ) { if (this.item == item) { + if (item != null) icon.frame(item.image); updateText(); return; }