v1.1.2: fixed bags opening an invisible window if quick used while empty
This commit is contained in:
parent
ff205970ca
commit
a4e96c5f80
|
@ -60,7 +60,7 @@ public class Bag extends Item implements Iterable<Item> {
|
|||
|
||||
super.execute( hero, action );
|
||||
|
||||
if (action.equals( AC_OPEN )) {
|
||||
if (action.equals( AC_OPEN ) && !items.isEmpty()) {
|
||||
|
||||
GameScene.show( new WndQuickBag( this ) );
|
||||
|
||||
|
|
|
@ -67,11 +67,6 @@ public class WndQuickBag extends Window {
|
|||
|
||||
Collections.sort(items, quickBagComparator);
|
||||
|
||||
if (items.isEmpty()){
|
||||
hide();
|
||||
return;
|
||||
}
|
||||
|
||||
int btnWidth = 16;
|
||||
int btnHeight = 20;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user