Skip to content

Commit d550bb2

Browse files
authored
Common - Fix calls to getVehicleCodriver (#11169)
1 parent 644f17b commit d550bb2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

addons/common/functions/fnc_canGetInPosition.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ switch (_position) do {
152152
};
153153

154154
case "codriver" : {
155-
private _positions = [typeOf _vehicle] call FUNC(getVehicleCodriver);
155+
private _positions = [_vehicle] call FUNC(getVehicleCodriver);
156156

157157
{
158158
if (alive _x) then {_positions deleteAt (_positions find (_vehicle getCargoIndex _x))};

addons/common/functions/fnc_getInPosition.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ switch (_position) do {
147147
};
148148

149149
case "codriver" : {
150-
private _positions = [typeOf _vehicle] call FUNC(getVehicleCodriver);
150+
private _positions = [_vehicle] call FUNC(getVehicleCodriver);
151151

152152
{
153153
if (alive _x) then {_positions deleteAt (_positions find (_vehicle getCargoIndex _x))};

0 commit comments

Comments
 (0)