From 0cbe027b3b0155d467e41eefc98f4ff0c6c2ba64 Mon Sep 17 00:00:00 2001 From: Jacob Schmidt Date: Sun, 25 May 2025 12:36:33 -0500 Subject: [PATCH] Fix: Correct typo in cargo damage handler This commit corrects a typo in the cargo damage handler within `fnc_makeCargo.sqf`. The event handler name was misspelled as "Dammaged" instead of "Damaged". This has been corrected to ensure the event handler functions as intended. Additionally, the hint message displayed when cargo is severely damaged also had the same typo, which has been corrected. --- addons/task/functions/fnc_makeCargo.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/task/functions/fnc_makeCargo.sqf b/addons/task/functions/fnc_makeCargo.sqf index 074e2e3..4eec388 100644 --- a/addons/task/functions/fnc_makeCargo.sqf +++ b/addons/task/functions/fnc_makeCargo.sqf @@ -27,13 +27,13 @@ if (_taskID == "") exitWith { diag_log "ERROR: No task ID provided for cargo"; } SETPVAR(_cargo,assignedTask,_taskID); GVAR(allCargo) pushBack _cargo; -_cargo addEventHandler ["Damaged", { +_cargo addEventHandler ["Dammaged", { params ["_unit", "_hitSelection", "_damage", "_hitPartIndex", "_hitPoint", "_shooter", "_projectile"]; if (damage _unit >= 0.7) then { private _taskID = GETVAR(_unit,assignedTask,""); if (_taskID isNotEqualTo "") then { - hint format ["Warning: Cargo severely damaged! Task: %1", _taskID]; + hint format ["Warning: Cargo severely dammaged! Task: %1", _taskID]; }; }; }]; \ No newline at end of file