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 c5cc2a48..b1449cb6 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -284,7 +284,7 @@ void do_input() {
show_skill_dialog = !show_skill_dialog;
action_time = false;
} else if(key[KEY_I]) {
- inventory.toggle();
+ inventory.setVisible(!inventory.isVisible());
action_time = false;
} else if(key[KEY_K]) {
show_skill_list_dialog = !show_skill_dialog;