Skip to content

Commit

Permalink
Merge pull request #1332 from acemod/medicalBinocTreatment
Browse files Browse the repository at this point in the history
Fix Script Error when treating with bincos
  • Loading branch information
thojkooi committed May 21, 2015
2 parents c4bd97c + 1aa9520 commit 8b69b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/medical/functions/fnc_treatment.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ if (currentWeapon _caller == secondaryWeapon _caller) then {
_caller selectWeapon (primaryWeapon _caller);
};

_wpn = ["non", "rfl", "pst"] select (["", primaryWeapon _caller, handgunWeapon _caller] find (currentWeapon _caller));
_wpn = ["non", "rfl", "pst"] select (1 + ([primaryWeapon _caller, handgunWeapon _caller] find (currentWeapon _caller)));
_callerAnim = [_callerAnim, "[wpn]", _wpn] call CBA_fnc_replace;
if (vehicle _caller == _caller && {_callerAnim != ""}) then {
if (primaryWeapon _caller == "") then {
Expand Down

0 comments on commit 8b69b3b

Please sign in to comment.