Skip to content

Commit 3ea4f67

Browse files
OH296EttyKitty
authored andcommitted
fix: Squad sorting error
1 parent 9a0122c commit 3ea4f67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/scr_company_order/scr_company_order.gml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ function scr_company_order(company) {
187187
if (struct_exists(squad.space,_wanted_role)){
188188
while (_squadless_with_role_count> 0) and (_wanted_role_number > 0){
189189
var _marine_id = array_pop(_squadless_with_role);
190+
_squadless_with_role_count--;
190191
unit = fetch_unit([co, _marine_id]);
191192
unit.add_to_squad(i)
192193
_wanted_role_number--;

0 commit comments

Comments
 (0)