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.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index 2666b4d1ca..2f7929b391 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -831,6 +831,12 @@ bool origin_known(const item_def &item)
return (item.orig_place != 0);
}
+void origin_reset(item_def &item)
+{
+ item.orig_place = 0;
+ item.orig_monnum = 0;
+}
+
// We have no idea where the player found this item.
void origin_set_unknown(item_def &item)
{