summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player-reacts.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/player-reacts.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/player-reacts.cc')
-rw-r--r--crawl-ref/source/player-reacts.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/player-reacts.cc b/crawl-ref/source/player-reacts.cc
index 4137c1bee9..18207dffe8 100644
--- a/crawl-ref/source/player-reacts.cc
+++ b/crawl-ref/source/player-reacts.cc
@@ -1253,7 +1253,7 @@ void player_reacts()
_check_equipment_conducts();
- if (you.unrand_reacts != 0)
+ if (you.unrand_reacts.any())
unrand_reacts();
// Handle sound-dependent effects that are silenced