Skip to content

Commit

Permalink
PR: Fix role not being initialised correctly in scr_add_man (#327)
Browse files Browse the repository at this point in the history
## Summary by Sourcery

Bug Fixes:
- Fixed a bug where the unit's role was not initialised correctly when
adding a new man.
  • Loading branch information
OH296 authored Dec 26, 2024
2 parents dbe88c6 + 881ae4b commit 6bb6e63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/scr_add_man/scr_add_man.gml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ function scr_add_man(man_role, target_company, spawn_exp, spawn_name, corruption
}

unit.add_exp(spawn_exp);
unit.update_role(man_role);

obj_ini.age[target_company][good] = ((obj_controller.millenium * 1000) + obj_controller.year); // Age here // Note: age for marines is generated later with roll_age(), this is left here as a fallback

Expand Down

0 comments on commit 6bb6e63

Please sign in to comment.