<commit_before>//	@file Name: convertTerritoryOwner.sqf
//	@file Author: AgentRev

private ["_oldGroup", "_newGroup", "_currentTeam"];

_oldGroup = _this select 0;
_newGroup = _this select 1;

{
	_currentTeam = _x select 2;
	
	if (typeName _currentTeam == typeName _oldGroup && {_currentTeam == _oldGroup}) then
	{
		_x set [2, _newGroup];
		_x set [3, 0]; // reset chrono
	};
} forEach currentTerritoryDetails;<commit_msg>Fixed error in convertTerritoryOwner.sqf (cherry picked from commit A3Wasteland/ArmA3_Wasteland.Altis@<PASSWORD>)<commit_after>//	@file Name: convertTerritoryOwner.sqf
//	@file Author: AgentRev

private ["_oldGroup", "_newGroup", "_currentTeam"];

_oldGroup = _this select 0;
_newGroup = _this select 1;

if (isNil "currentTerritoryDetails") exitWith {};

{
	_currentTeam = _x select 2;
	
	if (typeName _currentTeam == typeName _oldGroup && {_currentTeam == _oldGroup}) then
	{
		_x set [2, _newGroup];
		_x set [3, 0]; // reset chrono
	};
} forEach currentTerritoryDetails;
{'fraction_non_alphanumeric': 0.12537612838515547, 'fraction_numerical': 0.014042126379137413, 'mean_word_length': 5.0120481927710845, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4638690', 'n_tokens_mistral': 370, 'n_tokens_neox': 346, 'n_words': 97}