Skip to content

Commit

Permalink
fix: Squad sorting error
Browse files Browse the repository at this point in the history
  • Loading branch information
OH296 authored and EttyKitty committed Nov 27, 2024
1 parent 9a0122c commit 3ea4f67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/scr_company_order/scr_company_order.gml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ function scr_company_order(company) {
if (struct_exists(squad.space,_wanted_role)){
while (_squadless_with_role_count> 0) and (_wanted_role_number > 0){
var _marine_id = array_pop(_squadless_with_role);
_squadless_with_role_count--;
unit = fetch_unit([co, _marine_id]);
unit.add_to_squad(i)
_wanted_role_number--;
Expand Down

0 comments on commit 3ea4f67

Please sign in to comment.