summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/travel.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-26 22:34:30 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-10-26 22:34:30 +0100
commitebb31ec9ea1775430b83f893323a6786f48d0e1f (patch)
tree3bc95a9659535cdff23cf5b9ccac465f3e4dd28d /crawl-ref/source/travel.h
parent1664447c574e10aeb0d098c1edb399b380360e51 (diff)
downloadcrawl-ref-ebb31ec9ea1775430b83f893323a6786f48d0e1f.tar.gz
crawl-ref-ebb31ec9ea1775430b83f893323a6786f48d0e1f.zip
Consistenly regard travel_exclud::mon as monster_type.
Should fix the segmentation fault reported by steve in monsters.push_back(get_monster_data(curr_excludes[i].mon)->name);
Diffstat (limited to 'crawl-ref/source/travel.h')
-rw-r--r--crawl-ref/source/travel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/travel.h b/crawl-ref/source/travel.h
index 7cf296869d..d1c5e55ddd 100644
--- a/crawl-ref/source/travel.h
+++ b/crawl-ref/source/travel.h
@@ -360,11 +360,11 @@ struct travel_exclude
los_def los; // los from exclusion centre
bool uptodate; // Is los up to date?
bool autoex; // Was set automatically.
- int mon; // Monster around which exclusion is centered.
+ monster_type mon; // Monster around which exclusion is centered.
bool vault; // Is this exclusion set by a vault?
travel_exclude(const coord_def &p, int r = LOS_RADIUS,
- bool autoex = false, int mons = NON_MONSTER,
+ bool autoex = false, monster_type mons = NUM_MONSTERS,
bool vault = false);
int radius_sq() const;