summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/behold.cc
diff options
context:
space:
mode:
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();