From cbd8b5963eade3da2bc2b0ab176c21d6eb0c0561 Mon Sep 17 00:00:00 2001 From: hizumi <> Date: Sun, 21 Apr 2024 19:44:19 -0500 Subject: [PATCH] Update fn_addEmptyGroupCleanupPFH.sqf add more logging as to where the empty group is owned to track down deletion issues --- .../functions/fn_addEmptyGroupCleanupPFH.sqf | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/framework/performance/functions/fn_addEmptyGroupCleanupPFH.sqf b/framework/performance/functions/fn_addEmptyGroupCleanupPFH.sqf index 6dc4a90..9c17f7c 100644 --- a/framework/performance/functions/fn_addEmptyGroupCleanupPFH.sqf +++ b/framework/performance/functions/fn_addEmptyGroupCleanupPFH.sqf @@ -12,8 +12,30 @@ GVAR(emptyGroupCleanupPFH) = [ { if (local _x) then { if ((count units _x) == 0) then { + [ + LEVEL_INFO, + QUOTE(COMPONENT), + format["Deleting local empty group %1", groupId _x], + [] + ] call EFUNC(common,log); deleteGroup _x; }; + } else { + if (isServer) then { + [ + LEVEL_INFO, + QUOTE(COMPONENT), + format["Cannot delete group %1 as owner is %2", groupId _x, owner _x], + [] + ] call EFUNC(common,log); + } else { + [ + LEVEL_INFO, + QUOTE(COMPONENT), + format["Cannot delete group %1 as owner is %2", groupId _x, groupOwner _x], + [] + ] call EFUNC(common,log); + }; }; } forEach allGroups; },