mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Fixed a harmless bug where the Lank would try to add new sprites to old containers.
This commit is contained in:
parent
692569f655
commit
1f3b02440a
1 changed files with 2 additions and 1 deletions
|
@ -104,6 +104,7 @@ module.exports = Lank = class Lank extends CocoClass
|
|||
@sprite.destroy?()
|
||||
if parent = @sprite.parent
|
||||
parent.removeChild @sprite
|
||||
if parent.spriteSheet is newSprite.spriteSheet
|
||||
parent.addChild newSprite
|
||||
|
||||
# get the lank to update things
|
||||
|
|
Loading…
Reference in a new issue