summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/artefact.cc
diff options
context:
space:
mode:
authorEduardo Gonzalez <ed.gonzalez3@gmail.com>2014-05-09 12:58:20 -0400
committerreaverb <reaverb.Crawl@gmail.com>2014-05-09 13:55:07 -0400
commit6bbddb8b84b0405eab5d9fef114f26f414af83ca (patch)
treee957329e5b388d6343b0fc491a717bd0ac172fab /crawl-ref/source/artefact.cc
parentf2248c4d6d8cff0e089f7a57ff6b56ad374f1117 (diff)
downloadcrawl-ref-6bbddb8b84b0405eab5d9fef114f26f414af83ca.tar.gz
crawl-ref-6bbddb8b84b0405eab5d9fef114f26f414af83ca.zip
Recalculate cache of equipped unrands with world_reacts on save load
This allows us to more easily add or remove those hooks on existing unrands. The data type has also been changed to FixedBitVector from unsigned short, allowing the expanded ring slots to be referenced.
Diffstat (limited to 'crawl-ref/source/artefact.cc')
-rw-r--r--crawl-ref/source/artefact.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/artefact.cc b/crawl-ref/source/artefact.cc
index 56b03d1dd1..574ccf5151 100644
--- a/crawl-ref/source/artefact.cc
+++ b/crawl-ref/source/artefact.cc
@@ -2071,7 +2071,7 @@ void unrand_reacts()
for (int i = 0; i < NUM_EQUIP; i++)
{
- if (you.unrand_reacts & (1 << i))
+ if (you.unrand_reacts[i])
{
item_def& item = you.inv[you.equip[i]];
const unrandart_entry* entry = get_unrand_entry(item.special);