Fix serialization of levels in level editor

This commit is contained in:
Nick Winter 2016-01-12 09:42:34 -08:00
parent 02484fd172
commit 59c6d15248

View file

@ -28,7 +28,7 @@ module.exports = class Level extends CocoModel
# Figure out ThangTypes' Components
tmap = {}
tmap[t.thangType] = true for t in o.thangs ? []
sessionHeroes = [session.get('heroConfig')?.thangType, otherSession?.get('heroConfig')?.thangType]
sessionHeroes = [session?.get('heroConfig')?.thangType, otherSession?.get('heroConfig')?.thangType]
o.thangTypes = []
for tt in supermodel.getModels ThangType
if tmap[tt.get('original')] or