mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 17:47:29 +08:00
Add non-null assertion
This commit is contained in:
parent
ed8b34d5ed
commit
bc47dedf27
@ -148,6 +148,8 @@ namespace osu.Game.Overlays
|
||||
|
||||
protected override bool OnDrag(InputState state)
|
||||
{
|
||||
Trace.Assert(state.Mouse.PositionMouseDown != null);
|
||||
|
||||
chatHeight.Value = startDragChatHeight - (state.Mouse.Position.Y - state.Mouse.PositionMouseDown.Value.Y) / Parent.DrawSize.Y;
|
||||
return base.OnDrag(state);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user