Skip to content

Commit

Permalink
Fix bug of adding duplicate freq to ground station's freq list
Browse files Browse the repository at this point in the history
  • Loading branch information
KSP-TaxiService committed Apr 14, 2018
1 parent 6167805 commit 0af1c80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CommNetConstellation/UI/GroundStationEditDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private void addClick()
{
throw new Exception("Frequency cannot be negative");
}
else if (this.hostStation.Frequencies.Contains(newFreq))
else if (this.freqListShown.Contains(newFreq))
{
throw new Exception("Ground station has this frequency already");
}
Expand Down

0 comments on commit 0af1c80

Please sign in to comment.