Skip to content

Commit

Permalink
fix var name 🤦 (#121)
Browse files Browse the repository at this point in the history
bug  - led to vehicles having always 3 occupants (and not moving where that was too many)
  • Loading branch information
Fusselwurm authored May 10, 2021
1 parent 35b3fff commit 2232f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/cars/functions/fnc_spawnCarAndCrew.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private _maxInitialGroupSize = EGVAR(patrol,initialGroupSize);
private _automaticVehicleGroupSize = GVAR(automaticVehicleGroupSize);

private _groupSize = (floor random _maxInitialGroupSize) + 1;
if (_automtaicVehicleGroupSize) then {
if (_automaticVehicleGroupSize) then {
private _maxCount = count ((fullCrew [_veh, "", true]) select {
!(_veh lockedCargo _x#2);
});
Expand Down

0 comments on commit 2232f22

Please sign in to comment.