Skip to content

Commit 3f27183

Browse files
committed
also reset previous bank
1 parent e5af389 commit 3f27183

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

code/ship/ship.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10657,10 +10657,12 @@ void change_ship_type(int n, int ship_type, int by_sexp)
1065710657
if ( by_sexp ) {
1065810658
if (sip_orig->num_primary_banks > sip->num_primary_banks) {
1065910659
sp->weapons.current_primary_bank = 0;
10660+
sp->weapons.previous_primary_bank = 0;
1066010661
}
1066110662

1066210663
if (sip_orig->num_secondary_banks > sip->num_secondary_banks) {
1066310664
sp->weapons.current_secondary_bank = 0;
10665+
sp->weapons.previous_secondary_bank = 0;
1066410666
}
1066510667

1066610668
// While we're at it, let's copy over the ETS settings too

0 commit comments

Comments
 (0)