mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix squadron roster size.
This was excluding a number of pilots from the end of the roster equal to the number of losses the squadron had suffered.
This commit is contained in:
@@ -424,7 +424,7 @@ class SquadronModel(QAbstractListModel):
|
||||
self.squadron = squadron
|
||||
|
||||
def rowCount(self, parent: QModelIndex = QModelIndex()) -> int:
|
||||
return self.squadron.size
|
||||
return self.squadron.number_of_pilots_including_dead
|
||||
|
||||
def data(self, index: QModelIndex, role: int = Qt.DisplayRole) -> Any:
|
||||
if not index.isValid():
|
||||
|
||||
Reference in New Issue
Block a user