Skip to content

Commit

Permalink
fix: Vehicle spawning (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
OH296 authored Jan 8, 2025
1 parent ce0777e commit 389a84f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/scr_add_vehicle/scr_add_vehicle.gml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ function scr_add_vehicle(vehicle_type, target_company, weapon1, weapon2, weapon3
arm = "";
missing = 0;

for (var i = 0; i < array_length(obj_ini.veh_role[target_company]); i++) {
for (var i = 1; i < array_length(obj_ini.veh_role[target_company]); i++) {
if (good == 0) {
if (obj_ini.veh_role[target_company, i] == "") {
if (obj_ini.veh_role[target_company][i] == "") {
good = i;
break;
}
Expand Down

0 comments on commit 389a84f

Please sign in to comment.