Skip to content

Commit

Permalink
fix lost id
Browse files Browse the repository at this point in the history
  • Loading branch information
GuardianDll committed Sep 2, 2024
1 parent c0fe952 commit 9f5b561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monmove.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ 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 ) ) {
MonsterGroupManager::IsMonsterInGroup( type->baby_monster_group, tmp.type->id ) ) {
// 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 9f5b561

Please sign in to comment.