summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/traps.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/traps.cc')
-rw-r--r--crawl-ref/source/traps.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc
index a66b9fb40f..c162ed6e3a 100644
--- a/crawl-ref/source/traps.cc
+++ b/crawl-ref/source/traps.cc
@@ -150,7 +150,7 @@ bool trap_def::is_known(const actor* act) const
{
const monsters* monster = static_cast<const monsters*>(act);
const bool mechanical = (this->category() == DNGN_TRAP_MECHANICAL);
- const int intel = mons_intel(monster->type);
+ const int intel = mons_intel(monster);
// Smarter trap handling for intelligent monsters
// * monsters native to a branch can be assumed to know the trap