diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-11-02 22:22:49 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-11-02 22:22:49 +0100 |
commit | 12c5a8a6d5a5248401fab06aca7533035f8b5926 (patch) | |
tree | bef11a8dbf7c16f48ba658d296247e5ed1775992 /crawl-ref/source/tileview.cc | |
parent | 06db4ab9fbe167a4eb4c6d720ce6a67424d29850 (diff) | |
download | crawl-ref-12c5a8a6d5a5248401fab06aca7533035f8b5926.tar.gz crawl-ref-12c5a8a6d5a5248401fab06aca7533035f8b5926.zip |
Hush a bogus warning on old compilers.
Their flow analysis is not smart enough to notice the variable is
initialized in all cases.
Diffstat (limited to 'crawl-ref/source/tileview.cc')
-rw-r--r-- | crawl-ref/source/tileview.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/tileview.cc b/crawl-ref/source/tileview.cc index a36a31697f..c7e2a99929 100644 --- a/crawl-ref/source/tileview.cc +++ b/crawl-ref/source/tileview.cc @@ -972,7 +972,7 @@ void tile_place_ray(const coord_def &gc, aff_type in_range) void tile_draw_rays(bool reset_count) { - tileidx_t flag; + tileidx_t flag = 0; for (unsigned int i = 0; i < num_tile_rays; i++) { |