Fix indefiniteLength error on first frame

This commit is contained in:
phoenixeliot 2016-07-29 16:16:50 -07:00
parent f3ffcc2885
commit 51706a52be

View file

@ -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