From 8648955691bb81b8ec263a8d0aa122ce3c1a3277 Mon Sep 17 00:00:00 2001 From: PatrikLundell Date: Thu, 18 Jul 2024 13:23:46 +0200 Subject: [PATCH] Make use of the hunting count calculated --- src/faction_camp.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/faction_camp.cpp b/src/faction_camp.cpp index 3dac486a9f7cf..2c19d75249d6c 100644 --- a/src/faction_camp.cpp +++ b/src/faction_camp.cpp @@ -4789,10 +4789,15 @@ void basecamp::hunting_results( int skill, const mission_id &miss_id, int attemp } } - make_corpse_from_group( MonsterGroupManager::GetResultFromGroup( GROUP_CAMP_HUNTING, - &results_from_base_group ) ); - make_corpse_from_group( MonsterGroupManager::GetResultFromGroup( mission_specific_group, - &results_from_mission_group ) ); + while( results_from_base_group > 0 ) { + make_corpse_from_group( MonsterGroupManager::GetResultFromGroup( GROUP_CAMP_HUNTING, + &results_from_base_group ) ); + } + + while( results_from_mission_group > 0 ) { + make_corpse_from_group( MonsterGroupManager::GetResultFromGroup( mission_specific_group, + &results_from_mission_group ) ); + } } void basecamp::make_corpse_from_group( const std::vector &group )