diff --git a/graphics.go b/graphics.go index 9468d16..e525ef1 100644 --- a/graphics.go +++ b/graphics.go @@ -23,7 +23,7 @@ func (s *Sprite) SetPicture(pic Picture) { oldPic := s.d.Picture s.d.Picture = pic - if oldPic.Bounds() == pic.Bounds() { + if oldPic != nil && oldPic.Bounds() == pic.Bounds() { return }