v0.3.1a: fixed examining unseen heaps

This commit is contained in:
Evan Debenham 2015-08-20 00:58:49 -04:00 committed by Evan Debenham
parent 669ebb9794
commit e0ad8f1938

View File

@ -280,7 +280,7 @@ public class Toolbar extends Component {
}
Heap heap = Dungeon.level.heaps.get(cell);
if (heap != null) {
if (heap != null && heap.seen) {
if (heap.type == Heap.Type.FOR_SALE && heap.size() == 1 && heap.peek().price() > 0) {
GameScene.show(new WndTradeItem(heap, false));
} else {