summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r--crawl-ref/source/items.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index 47cccee2a7..50fca9f162 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -1637,9 +1637,10 @@ int move_item_to_player( int obj, int quant_got, bool quiet,
// If moving an item directly from a monster to the player without the
// item having been on the grid, then it really isn't a position event.
if (in_bounds(p))
+ {
dungeon_events.fire_position_event(
dgn_event(DET_ITEM_PICKUP, p, 0, obj, -1), p);
-
+ }
item_def &item = you.inv[freeslot];
// Copy item.
item = mitm[obj];