diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-26 22:34:30 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-26 22:34:30 +0100 |
commit | ebb31ec9ea1775430b83f893323a6786f48d0e1f (patch) | |
tree | 3bc95a9659535cdff23cf5b9ccac465f3e4dd28d /crawl-ref/source/travel.h | |
parent | 1664447c574e10aeb0d098c1edb399b380360e51 (diff) | |
download | crawl-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.h | 4 |
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; |