diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-10-21 17:05:35 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-10-21 17:19:32 +0200 |
commit | 8f1dca9d58b8c12b36cf218c52d0ed8cda611391 (patch) | |
tree | 6c62cdd0aec251e0231692dac204b76f1456f658 /crawl-ref/source/artefact.h | |
parent | e0fe16f441e7fdb4294903a616b16260bf398a5c (diff) | |
download | crawl-ref-8f1dca9d58b8c12b36cf218c52d0ed8cda611391.tar.gz crawl-ref-8f1dca9d58b8c12b36cf218c52d0ed8cda611391.zip |
Make some of big global data arrays const.
Two big offenders are mut_data and mondata, they are modified by
fixup_mutations() and Mara's clone spell, respectively. The former
is even not restored back!
Diffstat (limited to 'crawl-ref/source/artefact.h')
-rw-r--r-- | crawl-ref/source/artefact.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/artefact.h b/crawl-ref/source/artefact.h index 8846cdc509..c3a2c23c02 100644 --- a/crawl-ref/source/artefact.h +++ b/crawl-ref/source/artefact.h @@ -133,11 +133,11 @@ bool randart_is_bad(const item_def &item, artefact_properties_t &proprt); int find_unrandart_index(const item_def& artefact); -unrandart_entry* get_unrand_entry(int unrand_index); +const unrandart_entry* get_unrand_entry(int unrand_index); void artefact_set_property(item_def &item, - artefact_prop_type prop, - int val); + artefact_prop_type prop, + int val); int get_unrandart_num(const char *name); |