Skip to content

Commit 1b7abb5

Browse files
authored
PR: Fix minor scoping error in one of the new ship return events (#336)
## Summary by Sourcery Bug Fixes: - Fix an issue where piety was not correctly used when calculating corruption for returned ships.
1 parent 65342c8 commit 1b7abb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/scr_player_ship_functions/scr_player_ship_functions.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function return_lost_ship(){
5050
if (array_length(_units)){
5151
_text += $"While in the warp the geller fields temporarily went down leaving the ships crew to face the horror of the warp";
5252
for (var i=0;i<array_length(_units);i++){
53-
_units.edit_corruption(max(0,irandom_range(20, 120)-_unit.piety));
53+
_units[i].edit_corruption(max(0,irandom_range(20, 120)-_unit.piety));
5454
}
5555
}
5656
} else if (_return_defect>50){

0 commit comments

Comments
 (0)