diff options
author | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-21 12:58:59 -0700 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-06-21 13:00:17 -0700 |
commit | f7fddc81ffbb59ea5e81037d1047461cf5ca6b94 (patch) | |
tree | 1f870d374c8d503a4549669d3c251bd71d8fa822 /crawl-ref/source/fineff.cc | |
parent | e4f72f64e57e494f476fbdaf08798522cb1f8c49 (diff) | |
download | crawl-ref-f7fddc81ffbb59ea5e81037d1047461cf5ca6b94.tar.gz crawl-ref-f7fddc81ffbb59ea5e81037d1047461cf5ca6b94.zip |
Correct the call to apply_location_effects() in trample
Doesn't seem like this ever matters, but it's the principle.
Diffstat (limited to 'crawl-ref/source/fineff.cc')
-rw-r--r-- | crawl-ref/source/fineff.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/fineff.cc b/crawl-ref/source/fineff.cc index 51a2aeb23e..01f7953380 100644 --- a/crawl-ref/source/fineff.cc +++ b/crawl-ref/source/fineff.cc @@ -192,8 +192,9 @@ void trample_follow_fineff::fire() && adjacent(attack->pos(), posn) && attack->is_habitable(posn)) { + const coord_def old_pos = attack->pos(); attack->move_to_pos(posn); - attack->apply_location_effects(posn); + attack->apply_location_effects(old_pos); } } |