Skip to content

Commit

Permalink
fixed macro call unit
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom committed Aug 2, 2024
1 parent 190d0ef commit 697f652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cScripts/functions/init/fn_init_eventHandlers.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ INFO("InitEventHandlers","Creating Server EventHandlers");
[QEGVAR(log,player), {
params ["_guid","_name"];
private _unit = [_guid] call BIS_fnc_getUnitByUID;
private _loadout = if (isNull _unit) then {"Trooper"} else {GETVAR(EGVAR(Gear,LoadoutClass), typeOf _unit)};
private _loadout = if (isNull _unit) then {"Trooper"} else {GETVAR(_unit,EGVAR(Gear,LoadoutClass), typeOf _unit)};
private _playerLog = GETMVAR(EGVAR(log,players),createHashMap);
INFO_3("PlayerLog","Connected %1 [%2] (GUID: %3)",_name,_unit,_guid);

Expand Down

0 comments on commit 697f652

Please sign in to comment.