summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/behold.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-12-02 05:43:30 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-12-02 05:44:17 -0800
commita2c9f19f6f64a781722ca602c393731d456cf3b3 (patch)
treef53b33daecd00017e3355fde0cc564c21aa282f4 /crawl-ref/source/behold.cc
parent9a0d6db186259aae900f30afb26322640487e97d (diff)
downloadcrawl-ref-a2c9f19f6f64a781722ca602c393731d456cf3b3.tar.gz
crawl-ref-a2c9f19f6f64a781722ca602c393731d456cf3b3.zip
Fix mesmerisation being broken too soon
Diffstat (limited to 'crawl-ref/source/behold.cc')
-rw-r--r--crawl-ref/source/behold.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/behold.cc b/crawl-ref/source/behold.cc
index e38b80607c..d76997a7d3 100644
--- a/crawl-ref/source/behold.cc
+++ b/crawl-ref/source/behold.cc
@@ -132,7 +132,7 @@ void player::update_beholder(const monsters *mon)
if (_possible_beholder(mon))
return;
for (unsigned int i = 0; i < beholders.size(); i++)
- if (beholders[i] = mon->mindex())
+ if (beholders[i] == mon->mindex())
{
beholders.erase(beholders.begin() + i);
_removed_beholder();