Don't risk destruction of level unlock links

This commit is contained in:
Nick Winter 2015-12-23 12:08:09 -08:00
parent 55f7b4a115
commit 71fc8d5230

View file

@ -254,6 +254,7 @@ module.exports = class CampaignEditorView extends RootView
@$el.find('#campaign-view').hide() @$el.find('#campaign-view').hide()
updateRewardsForLevel: (level, rewards) -> updateRewardsForLevel: (level, rewards) ->
return # Don't risk destruction of level unlock links
achievements = @supermodel.getModels(Achievement) achievements = @supermodel.getModels(Achievement)
achievements = (a for a in achievements when a.get('related') is level.get('original')) achievements = (a for a in achievements when a.get('related') is level.get('original'))
for achievement in achievements for achievement in achievements