Skip to content

Commit

Permalink
Update src/suffer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Maleclypse authored Jul 27, 2024
1 parent 2417b8f commit 99efe13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/suffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ void suffer::while_grabbed( Character &you )
int impassable_ter = 0;
for( auto&& dest : here.points_in_radius( you.pos(), 2, 0 ) ) { // *NOPAD*
const monster *const mon = creatures.creature_at<monster>( dest );
if( mon && mon->has_flag( mon_flag_GROUP_BASH ) && !helpermon.is_hallucination() ) {
if( mon && mon->has_flag( mon_flag_GROUP_BASH ) && !mon.is_hallucination() ) {

Check failure on line 338 in src/suffer.cpp

View workflow job for this annotation

GitHub Actions / build (src)

member reference type 'const monster *const' is a pointer; did you mean to use '->'? [clang-diagnostic-error]

Check failure on line 338 in src/suffer.cpp

View workflow job for this annotation

GitHub Actions / Basic Build and Test (Clang 10, Ubuntu, Curses)

member reference type 'const monster *const' is a pointer; did you mean to use '->'?
crowd++;
add_msg_debug( debugmode::DF_CHARACTER, "Crowd pressure check: monster %s found, crowd size %d",
mon->name(), crowd );
Expand Down

0 comments on commit 99efe13

Please sign in to comment.