fix newly introduced bug in Sprite.SetPicture
This commit is contained in:
parent
6874fff0f6
commit
43aae3d3bd
|
@ -23,7 +23,7 @@ func (s *Sprite) SetPicture(pic Picture) {
|
||||||
oldPic := s.d.Picture
|
oldPic := s.d.Picture
|
||||||
s.d.Picture = pic
|
s.d.Picture = pic
|
||||||
|
|
||||||
if oldPic.Bounds() == pic.Bounds() {
|
if oldPic != nil && oldPic.Bounds() == pic.Bounds() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue