mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -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,7 +104,8 @@ module.exports = Lank = class Lank extends CocoClass
|
|||
@sprite.destroy?()
|
||||
if parent = @sprite.parent
|
||||
parent.removeChild @sprite
|
||||
parent.addChild newSprite
|
||||
if parent.spriteSheet is newSprite.spriteSheet
|
||||
parent.addChild newSprite
|
||||
|
||||
# get the lank to update things
|
||||
for prop in ['lastPos', 'currentRootAction']
|
||||
|
|
Loading…
Reference in a new issue