diff options
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index 31511af214..c05e1bf18f 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -5522,7 +5522,7 @@ bolt::bolt() : range(-2), type('*'), smart_monster(false), can_see_invis(false), attitude(ATT_HOSTILE), foe_ratio(0), chose_ray(false), beam_cancelled(false), dont_stop_player(false), bounces(false), - bounce_pos(), reflections(0), reflector(-1) + bounce_pos(), reflections(0), reflector(-1), auto_hit(false) { } @@ -5718,3 +5718,12 @@ std::string beam_type_name(beam_type type) DEBUGSTR("unknown beam type"); return("UNKNOWN"); } + +void clear_zap_info_on_exit() +{ + for (unsigned int i = 0; i < NUM_BEAMS; ++i) + { + delete zap_data[i].damage; + delete zap_data[i].tohit; + } +} |