Skip to content

Commit

Permalink
Handle hallucinations in the reachability zones flood fill.
Browse files Browse the repository at this point in the history
  • Loading branch information
prharvey committed Jan 4, 2024
1 parent 622d57d commit 6eb8bc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/creature_tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ void creature_tracker::flood_fill_zone( const Creature &origin )
return false;
},
[this]( const tripoint_bub_ms & loc ) {
Creature *creature = this->creature_at<Creature>( loc );
Creature *creature = this->creature_at<Creature>( loc, true );
if( creature ) {
const int n = zone_number_ * zone_tick_;
creatures_by_zone_and_faction_[n][creature->get_monster_faction()].push_back( creature );
Expand Down

0 comments on commit 6eb8bc1

Please sign in to comment.