From 4412160c9f7d6410f7974e6daf1027716547cceb Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Fri, 6 Nov 2009 19:11:08 +0100 Subject: 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. --- crawl-ref/source/spells2.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/spells2.h') 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 & candidates); +bool prioritise_adjacent(const coord_def &target, + std::vector &candidates); bool plant_ring_from_fruit(); int rain(const coord_def &target); -- cgit v1.2.3-54-g00ecf