From d3273054ee1dee67c88ba076b1e368e4c18699ee Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 29 Jan 2016 20:42:24 -0500 Subject: [PATCH] v0.3.4: tweaked window hiding order in wnditem --- .../shatteredpixel/shatteredpixeldungeon/windows/WndItem.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndItem.java b/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndItem.java index 67941499f..a2437b114 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndItem.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/windows/WndItem.java @@ -20,8 +20,8 @@ */ package com.shatteredpixel.shatteredpixeldungeon.windows; -import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon; import com.shatteredpixel.shatteredpixeldungeon.Dungeon; +import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon; import com.shatteredpixel.shatteredpixeldungeon.items.Item; import com.shatteredpixel.shatteredpixeldungeon.messages.Messages; import com.shatteredpixel.shatteredpixeldungeon.scenes.PixelScene; @@ -74,9 +74,9 @@ public class WndItem extends Window { RedButton btn = new RedButton( Messages.get(item, "ac_" + action), 8 ) { @Override protected void onClick() { - item.execute( Dungeon.hero, action ); hide(); owner.hide(); + item.execute( Dungeon.hero, action ); }; }; btn.setSize( btn.reqWidth(), BUTTON_HEIGHT );