From 9f5b561b138dc80e1908fa897f40d3168e710d62 Mon Sep 17 00:00:00 2001 From: GuardianDll Date: Mon, 2 Sep 2024 17:51:14 +0200 Subject: [PATCH] fix lost id --- src/monmove.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monmove.cpp b/src/monmove.cpp index 03633109450af..e0925364d2a9d 100644 --- a/src/monmove.cpp +++ b/src/monmove.cpp @@ -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 ) {