mirror of
https://github.com/osukey/osukey.git
synced 2025-05-24 23:17:25 +09:00
Fix interpolation nullrefs
This commit is contained in:
parent
6e41506766
commit
d770dac3bc
@ -30,7 +30,7 @@ namespace osu.Game.Rulesets.Catch.Replays
|
|||||||
|
|
||||||
Debug.Assert(CurrentTime != null);
|
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);
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user