aboutsummaryrefslogtreecommitdiff
path: root/frontend/cmd
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-02 21:10:27 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-02 21:10:27 +0100
commitd554cb39a2f1ec97dd214a5dd200ae5f03cf616d (patch)
treeba52e12e1791592ee7634b6a3e190d9bba950860 /frontend/cmd
parentb4507b3601bedcaa599673b9f9083d1574132157 (diff)
cleanup
Diffstat (limited to 'frontend/cmd')
-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();
}