Skip to content

Commit

Permalink
Update src/monmove.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
GuardianDll and github-actions[bot] authored Sep 2, 2024
1 parent c8abb04 commit c0fe952
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/monmove.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,8 @@ void monster::anger_cub_threatened( monster_plan &mon_plan )
}

for( monster &tmp : g->all_monsters() ) {
if( type->baby_monster == tmp.type->id || MonsterGroupManager::IsMonsterInGroup( type->baby_monster_group, tmp.type ) ) {
if( type->baby_monster == tmp.type->id ||
MonsterGroupManager::IsMonsterInGroup( type->baby_monster_group, tmp.type ) ) {

Check failure on line 420 in src/monmove.cpp

View workflow job for this annotation

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

reference to type 'const mtype_id' (aka 'const string_id<mtype>') could not bind to an lvalue of type 'const mtype *'

Check failure on line 420 in src/monmove.cpp

View workflow job for this annotation

GitHub Actions / build (src)

reference to type 'const mtype_id' (aka 'const string_id<mtype>') could not bind to an lvalue of type 'const mtype *' [clang-diagnostic-error]
// baby nearby; is the player too close?
mon_plan.dist = tmp.rate_target( *mon_plan.target, mon_plan.dist, mon_plan.smart_planning );
if( mon_plan.dist <= 3 ) {
Expand Down

0 comments on commit c0fe952

Please sign in to comment.