Skip to content

Commit

Permalink
Update ShipBattleUI.java
Browse files Browse the repository at this point in the history
Fixed a bug where remaining commands were transferred from one stack to another, which could also cause a crash when missile-bases were involved.
  • Loading branch information
Xilmi committed Jun 17, 2021
1 parent 6894eae commit 46f0fcd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rotp/ui/combat/ShipBattleUI.java
Expand Up @@ -2171,6 +2171,9 @@ public void clickAction(boolean rightClick) {
for (ShipActionButton butt: buttons) {
if (butt != this)
butt.clickAllAction(rightClick);
//ail: if we kill our target we must leave this loop, otherwise the next stack will continue here!
if (!mgr.currentStack().canFireWeaponAtTarget(ship))
break;
}
}
}
Expand Down

0 comments on commit 46f0fcd

Please sign in to comment.