fixed incorrect variable name

This commit is contained in:
Glowbal 2015-08-14 22:07:49 +02:00
parent 96ec435d0d
commit 2062f5dcb6

View File

@ -21,7 +21,7 @@ _nearestVehicle = [_player] call FUNC(findNearestVehicle);
if (isNull _nearestVehicle || _nearestVehicle isKindOf "Cargo_Base_F") then {
{
if ([_item, _x] call FUNC(canLoadItemIn)) exitwith {_nearestVehicle = _x};
if ([_object, _x] call FUNC(canLoadItemIn)) exitwith {_nearestVehicle = _x};
}foreach (nearestObjects [_player, ["Cargo_base_F"], MAX_LOAD_DISTANCE]);
};