summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fineff.cc
diff options
context:
space:
mode:
authorNicholas Feinberg <pleasingfung@gmail.com>2014-06-21 12:58:59 -0700
committerNicholas Feinberg <pleasingfung@gmail.com>2014-06-21 13:00:17 -0700
commitf7fddc81ffbb59ea5e81037d1047461cf5ca6b94 (patch)
tree1f870d374c8d503a4549669d3c251bd71d8fa822 /crawl-ref/source/fineff.cc
parente4f72f64e57e494f476fbdaf08798522cb1f8c49 (diff)
downloadcrawl-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.cc3
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);
}
}