summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 3dd254ef..bbfbee9e 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1607,7 +1607,7 @@ void do_parse()
sellDialog->setVisible(true);
for (int k = 0; k < n_items; k++) {
Item *item = inventory->getItem(RFIFOW(4 + 10 * k));
- if (item) {
+ if (item && !(item->isEquipped())) {
sellDialog->addItem(item, RFIFOL(4 + 10 * k + 2));
}
}