mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-13 22:49:51 -04:00
Fixed bug with trying to play selection sound for nonexistent sprites.
This commit is contained in:
parent
7811bda6c3
commit
c1052d8d7e
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ module.exports = class SpriteBoss extends CocoClass
|
|||
@selectedSprite?.selected = false
|
||||
sprite?.selected = true
|
||||
@selectedSprite = sprite
|
||||
alive = not (sprite?.thang.health < 0)
|
||||
alive = sprite and not (sprite.thang.health < 0)
|
||||
|
||||
Backbone.Mediator.publish 'surface:sprite-selected',
|
||||
thang: if sprite then sprite.thang else null
|
||||
|
|
Loading…
Reference in a new issue