aboutsummaryrefslogtreecommitdiff
path: root/frontend/cmd/equip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/cmd/equip.cpp')
-rw-r--r--frontend/cmd/equip.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/frontend/cmd/equip.cpp b/frontend/cmd/equip.cpp
index 72795a8..b8caad8 100644
--- a/frontend/cmd/equip.cpp
+++ b/frontend/cmd/equip.cpp
@@ -16,6 +16,7 @@ void GameController::cmd_equip(string & target_name) {
Object & object = **it;
player.equip(&object);
+ player.inventory.remove(&object);
this->dungeon->update();
}