aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index bedccab..2348375 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -964,8 +964,11 @@ EXIT:
dialogAdvance();
} else {
// left click uses item
- if (e.button.button & SDL_BUTTON_LEFT)
+ if (e.button.button & SDL_BUTTON_LEFT) {
+ player->inv->currentAddInteract(currentWorld->getMobs());
player->inv->useCurrent();
+ }
+
}
if(mouse.x > player->loc.x && mouse.x < player->loc.x + player->width &&