Skip to content

Commit

Permalink
Merge pull request #5215 from IllianiCBT/nag_prisoners
Browse files Browse the repository at this point in the history
Refactored `getCurrentPrisoners` to use `getActivePersonnel`
  • Loading branch information
HammerGS authored Nov 23, 2024
2 parents 7dd4097 + cde4590 commit a89a4f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MekHQ/src/mekhq/campaign/Campaign.java
Original file line number Diff line number Diff line change
Expand Up @@ -2022,9 +2022,9 @@ public List<Person> getActiveDependents() {
* @return a {@link Person} <code>List</code> containing all active personnel
*/
public List<Person> getCurrentPrisoners() {
return getPersonnel().stream()
.filter(p -> p.getPrisonerStatus().isCurrentPrisoner())
.collect(Collectors.toList());
return getActivePersonnel().stream()
.filter(person -> person.getPrisonerStatus().isCurrentPrisoner())
.collect(Collectors.toList());
}

/**
Expand Down

0 comments on commit a89a4f0

Please sign in to comment.