diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-12-16 05:12:47 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-12-16 05:12:47 +0100 |
commit | d33793693eaf8ce4007158ba43a7a56db75f5a13 (patch) | |
tree | 814b5c62a24b39138ed4dd662a1a023534c802dc /crawl-ref/source/mgen_data.h | |
parent | 129b971fb6ed8d2eec2abc1c9c69fd1e67cfc9cd (diff) | |
download | crawl-ref-d33793693eaf8ce4007158ba43a7a56db75f5a13.tar.gz crawl-ref-d33793693eaf8ce4007158ba43a7a56db75f5a13.zip |
Constify the actor in mgen_data.
Diffstat (limited to 'crawl-ref/source/mgen_data.h')
-rw-r--r-- | crawl-ref/source/mgen_data.h | 4 |
1 files changed, 2 insertions, 2 deletions
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), |