From 38297a1fd767d891a469215258cfe56e23599796 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Thu, 15 Jan 2015 09:07:47 -0800 Subject: [PATCH] Fixed problem with levels that don't have next levels in campaign editor. --- app/views/play/CampaignView.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/play/CampaignView.coffee b/app/views/play/CampaignView.coffee index b07d4d209..07fff7412 100644 --- a/app/views/play/CampaignView.coffee +++ b/app/views/play/CampaignView.coffee @@ -192,7 +192,7 @@ module.exports = class CampaignView extends RootView @highlightElement '.level.next', delay: 500, duration: 60000, rotation: 0, sides: ['top'] if @editorMode for level in @campaign.renderedLevels - for nextLevelOriginal in level.nextLevels + for nextLevelOriginal in level.nextLevels ? [] if nextLevel = _.find(@campaign.renderedLevels, original: nextLevelOriginal) @createLine level.position, nextLevel.position @applyCampaignStyles()