From ebb31ec9ea1775430b83f893323a6786f48d0e1f Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Mon, 26 Oct 2009 22:34:30 +0100 Subject: 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); --- crawl-ref/source/travel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/travel.h') 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; -- cgit v1.2.3-54-g00ecf