Skip to content

Commit

Permalink
fix #2252 position at node
Browse files Browse the repository at this point in the history
  • Loading branch information
firdacz committed Mar 23, 2018
1 parent 06ef52a commit e0b4e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kOS/Suffixed/VesselTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public override Orbit GetOrbitAtUT(double desiredUT)
// patch, then just return the last patch (this can happen because a patches' EndUT
// is one period of time and we might be predicting for a point in time more than one
// period into the future.)
while (!(orbitPatch.StartUT < desiredUT && desiredUT < orbitPatch.EndUT))
while (!(orbitPatch.StartUT <= desiredUT && desiredUT < orbitPatch.EndUT))
{
// Sadly the way to detect that you are at the end of the orbitPatch list is
// messy and inconsistent. Sometimes KSP's API gives you a list that ends
Expand Down

0 comments on commit e0b4e33

Please sign in to comment.