1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-21 06:29:52 +08:00

Fix interpolation nullrefs

This commit is contained in:
Dean Herbert
2019-03-29 00:35:26 +09:00
Unverified
parent 6e41506766
commit d770dac3bc
2 changed files with 2 additions and 2 deletions
@@ -30,7 +30,7 @@ namespace osu.Game.Rulesets.Catch.Replays
Debug.Assert(CurrentTime != null);
return Interpolation.ValueAt(CurrentTime.Value, frame.Position, NextFrame.Position, frame.Time, NextFrame.Time);
return NextFrame != null ? Interpolation.ValueAt(CurrentTime.Value, frame.Position, NextFrame.Position, frame.Time, NextFrame.Time) : frame.Position;
}
}
@@ -32,7 +32,7 @@ namespace osu.Game.Rulesets.Osu.Replays
Debug.Assert(CurrentTime != null);
return Interpolation.ValueAt(CurrentTime.Value, frame.Position, NextFrame.Position, frame.Time, NextFrame.Time);
return NextFrame != null ? Interpolation.ValueAt(CurrentTime.Value, frame.Position, NextFrame.Position, frame.Time, NextFrame.Time) : frame.Position;
}
}