mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Fixed problem with levels that don't have next levels in campaign editor.
This commit is contained in:
parent
b0d00ce213
commit
38297a1fd7
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue