Skip to content

Commit

Permalink
Merge pull request #700 from ColdEvul/errorFix
Browse files Browse the repository at this point in the history
Fixed isplayer error
  • Loading branch information
AndreasBrostrom authored Feb 2, 2021
2 parents bcc6a9d + 00e8767 commit 9d07aa1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cScripts/CavFnc/functions/gear/fn_gear_setupRadios.sqf
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "..\script_component.hpp"
params [["_unit", objNull]];
/*
* Author: BaerMitUmlaut, CPL.Brostrom.A
* This function setup radio preset and apply a set radio channel to them on server and player.
Expand All @@ -14,6 +13,8 @@ params [["_unit", objNull]];
* [] call cScripts_fnc_gear_setupRadios
*
*/

params [["_unit", objNull, [objNull]]];

if !(EGVAR(patches,usesACRE)) exitWith {};
if (count allMissionObjects "acre_api_basicMissionSetup" > 0) exitWith {};
Expand Down Expand Up @@ -41,7 +42,7 @@ if !(_lrChannels isEqualType []) exitWith {["Radio array have not been setup cor
*/

// Set radio channel
if (isPlayer) then {
if (isPlayer _unit) then {
if (EGVAR(Settings,setRadio)) then {
[_unit] call FUNC(setRadioChannel);
#ifdef DEBUG_MODE
Expand Down

0 comments on commit 9d07aa1

Please sign in to comment.