From af6e4573226fa054032400f80d50b43a49ef54d9 Mon Sep 17 00:00:00 2001 From: Milan Nikolic Date: Sun, 19 Nov 2017 20:31:59 +0100 Subject: [PATCH] Typo --- physics/physics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/physics/physics.go b/physics/physics.go index 208caf3..9540625 100644 --- a/physics/physics.go +++ b/physics/physics.go @@ -607,7 +607,7 @@ func (b *Body) Shatter(position raylib.Vector2, force float32) { p1 := newBody.Shape.VertexData.Vertices[j] nextVertex := 0 if j+1 < newBody.Shape.VertexData.VertexCount { - nextIndex = j + 1 + nextVertex = j + 1 } p2 := newBody.Shape.VertexData.Vertices[nextVertex]