mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Fix indefiniteLength error on first frame
This commit is contained in:
parent
f3ffcc2885
commit
51706a52be
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ module.exports = class Angel extends CocoClass
|
|||
if @work?.indefiniteLength and world.victory?
|
||||
finished = true
|
||||
world.totalFrames = world.frames.length
|
||||
firstChangedFrame = if @work.indefiniteLength then 0 else world.findFirstChangedFrame @shared.world
|
||||
firstChangedFrame = if @work?.indefiniteLength then 0 else world.findFirstChangedFrame @shared.world
|
||||
eventType = if finished then 'new-world-created' else 'streaming-world-updated'
|
||||
if finished
|
||||
@shared.world = world
|
||||
|
|
Loading…
Reference in a new issue