Skip to content

Commit

Permalink
fix: Initial costumeIndex for sprite not working #317
Browse files Browse the repository at this point in the history
  • Loading branch information
qlli committed Sep 6, 2024
1 parent 3df776b commit 82b44ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sprite.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func (p *Sprite) init(
} else {
p.baseObj.initWith(base, sprite, shared)
}
p.defaultCostumeIndex = p.baseObj.costumeIndex_
p.eventSinks.init(&g.sinkMgr, p)

p.gamer = gamer
Expand Down

0 comments on commit 82b44ba

Please sign in to comment.