summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-06 19:11:08 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-06 19:16:19 +0100
commit4412160c9f7d6410f7974e6daf1027716547cceb (patch)
treec48612e4bb41b55a8efd36273e5e98cd9f4a4404 /crawl-ref/source/spells2.h
parentdef6a88b388cdcf3ac08c2144b9d30f6c8bfb010 (diff)
downloadcrawl-ref-4412160c9f7d6410f7974e6daf1027716547cceb.tar.gz
crawl-ref-4412160c9f7d6410f7974e6daf1027716547cceb.zip
Make some passed references const.
A couple of the Feawn functions were passed read-only arguments (coordinate center, etc.) as non-const references, which leaked out to require you.pos() to be non-const.
Diffstat (limited to 'crawl-ref/source/spells2.h')
-rw-r--r--crawl-ref/source/spells2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/spells2.h b/crawl-ref/source/spells2.h
index 124032f9f4..dcc02dfed2 100644
--- a/crawl-ref/source/spells2.h
+++ b/crawl-ref/source/spells2.h
@@ -32,7 +32,8 @@ int create_plant(coord_def & target);
//bool plant_from_fruit();
bool sunlight();
-bool prioritise_adjacent(coord_def & target, std::vector<coord_def> & candidates);
+bool prioritise_adjacent(const coord_def &target,
+ std::vector<coord_def> &candidates);
bool plant_ring_from_fruit();
int rain(const coord_def &target);