From d33793693eaf8ce4007158ba43a7a56db75f5a13 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Sun, 16 Dec 2012 05:12:47 +0100 Subject: Constify the actor in mgen_data. --- crawl-ref/source/mgen_data.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/mgen_data.h') diff --git a/crawl-ref/source/mgen_data.h b/crawl-ref/source/mgen_data.h index 99e311b623..88c8f1042c 100644 --- a/crawl-ref/source/mgen_data.h +++ b/crawl-ref/source/mgen_data.h @@ -27,7 +27,7 @@ struct mgen_data // Who summoned this monster? Important to know for death accounting // and the summon cap, if and when it goes in. NULL is no summoner. - actor* summoner; + const actor* summoner; // For summoned monsters, this is a measure of how long the summon will // hang around, on a scale of 1-6, 6 being longest. Use 0 for monsters @@ -118,7 +118,7 @@ struct mgen_data mgen_data(monster_type mt = RANDOM_MONSTER, beh_type beh = BEH_HOSTILE, - actor* sner = 0, + const actor* sner = 0, int abj = 0, int st = 0, const coord_def &p = coord_def(-1, -1), -- cgit v1.2.3-54-g00ecf