diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2010-02-26 12:13:22 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2010-02-26 12:39:12 +0100 |
commit | 0dd5236906c0768785e930e4ff130aad1d308181 (patch) | |
tree | ec2b72af09746ee5e9a439f8f6de24dc99d8ec7c /crawl-ref/source/tilereg.cc | |
parent | 4e5a9f9199a132500b7283c2b7158c556eeadbd3 (diff) | |
download | crawl-ref-0dd5236906c0768785e930e4ff130aad1d308181.tar.gz crawl-ref-0dd5236906c0768785e930e4ff130aad1d308181.zip |
Replace dynamic monster casts by actor::as_monster.
Diffstat (limited to 'crawl-ref/source/tilereg.cc')
-rw-r--r-- | crawl-ref/source/tilereg.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc index 41b43df3ba..6ab8008ff6 100644 --- a/crawl-ref/source/tilereg.cc +++ b/crawl-ref/source/tilereg.cc @@ -1580,7 +1580,7 @@ static const bool _is_appropriate_spell(spell_type spell, if (flags & SPFLAG_NEUTRAL) return (false); - bool friendly = dynamic_cast<const monsters*>(target)->wont_attack(); + bool friendly = target->as_monster()->wont_attack(); return (friendly == helpful); } |