Skip to content

Commit

Permalink
fixed some crash
Browse files Browse the repository at this point in the history
  • Loading branch information
kimjoy2002 committed Nov 24, 2020
1 parent cc8bd02 commit e29c2e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crawl-ref/source/beam.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2427,7 +2427,7 @@ bool bolt::is_bouncy(dungeon_feature_type feat) const
return true;
}

if(agent()->is_player() && will_have_passive(passive_t::imus_bounce_wall)
if(agent() && agent()->is_player() && will_have_passive(passive_t::imus_bounce_wall)
&& you.duration[DUR_SPECTRUM] == 0) {
return true;
}
Expand Down

0 comments on commit e29c2e4

Please sign in to comment.