summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-21 11:04:32 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-21 11:04:32 +0000
commit7d317e6fc0e6847a95d0c59888400f135af66cd7 (patch)
tree300529b27b82ca9ee572659368389270c5fc6597 /crawl-ref/source/monstuff.cc
parent6d641e67f004a7dc483e3590a1ecbde0e3ccd455 (diff)
downloadcrawl-ref-7d317e6fc0e6847a95d0c59888400f135af66cd7.tar.gz
crawl-ref-7d317e6fc0e6847a95d0c59888400f135af66cd7.zip
Remove a few more unnecessary casts.
Don't cheat on constness in _mons_has_path_to_player. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8651 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 68bdeb1ddb..2f8e567d5c 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -1567,7 +1567,7 @@ int monster_die(monsters *monster, killer_type killer,
in_transit = true;
monster->destroy_inventory();
// Make monster stop patrolling and/or travelling.
- monster->patrol_point = coord_def(0, 0);
+ monster->patrol_point.reset();
monster->travel_path.clear();
monster->travel_target = MTRAV_NONE;
break;