diff --git a/player.go b/player.go index ba91576..ca7ca18 100644 --- a/player.go +++ b/player.go @@ -56,7 +56,7 @@ func (p *player) recv() { } func (p *player) nudge() { - newPos := v.Move(p.Robot.Position, p.Robot.MoveTo, p.Robot.Stats.Speed, delta) + newPos := v.Move(p.Robot.Position, *p.Robot.MoveTo, p.Robot.Stats.Speed, delta) p.Robot.Position.X = newPos.X p.Robot.Position.Y = newPos.Y }