diff options
author | Jesse Luehrs <doy@tozt.net> | 2010-09-21 16:15:07 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2010-09-21 16:35:37 -0500 |
commit | a8a79c0227a6aa65cdb58aa252c71f5c417f3986 (patch) | |
tree | 97e193f1f632780129868c5199db0ddd98d540b1 /crawl-ref/source/colour.h | |
parent | b43597d2bc42537ad6e1a1be558dba74a48d127e (diff) | |
download | crawl-ref-a8a79c0227a6aa65cdb58aa252c71f5c417f3986.tar.gz crawl-ref-a8a79c0227a6aa65cdb58aa252c71f5c417f3986.zip |
silence some (harmless) valgrind warnings
Diffstat (limited to 'crawl-ref/source/colour.h')
-rw-r--r-- | crawl-ref/source/colour.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/colour.h b/crawl-ref/source/colour.h index 82c47784bd..4e6de179d0 100644 --- a/crawl-ref/source/colour.h +++ b/crawl-ref/source/colour.h @@ -67,6 +67,8 @@ struct element_colour_calc virtual int get(const coord_def& loc = coord_def(), bool non_random = false); + virtual ~element_colour_calc() {}; + protected: int rand(bool non_random); @@ -80,6 +82,7 @@ unsigned int str_to_tile_colour(std::string colour); void init_element_colours(); void add_element_colour(element_colour_calc *colour); +void clear_colours_on_exit(); uint8_t random_colour(); uint8_t random_uncommon_colour(); uint8_t make_low_colour(uint8_t colour); |