Skip to content

Commit

Permalink
Use GetFilteredEntites in DebugWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
behindcurtain3 committed Apr 28, 2024
1 parent cbabd5c commit 4dda5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pulsar4X/Pulsar4X.Client/DebugAndPData/DebugWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ void RefreshFactionEntites(GlobalUIState uiState)
{
SystemState = _uiState.StarSystemStates[_uiState.SelectedStarSysGuid];
_factionOwnedEntites = new List<(string name, Entity entity)>();
var factionEntites = _uiState.SelectedSystem.GetEntitiesByFaction(_uiState.Faction.Id);
var factionEntites = _uiState.SelectedSystem.GetFilteredEntities(DataStructures.EntityFilter.Friendly, _uiState.Faction.Id);
foreach (var entity in factionEntites.ToArray())
{
string name = entity.Id.ToString();
Expand Down

0 comments on commit 4dda5bc

Please sign in to comment.