diff --git a/examples/sprites/main.go b/examples/sprites/main.go index 3d7b750c0..1a43f7b08 100644 --- a/examples/sprites/main.go +++ b/examples/sprites/main.go @@ -79,8 +79,8 @@ type Sprites struct { } func (s *Sprites) Update() { - for _, sprite := range s.sprites { - sprite.Update() + for i := 0; i < s.num; i++ { + s.sprites[i].Update() } }