mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 06:23:41 -04:00
Fixed a bug with new levels in the level editor.
This commit is contained in:
parent
5b0e996f93
commit
4a100a501a
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ module.exports = class Level extends CocoModel
|
|||
|
||||
denormalize: (supermodel, session) ->
|
||||
o = $.extend true, {}, @attributes
|
||||
if @get('type', true) is 'hero'
|
||||
if o.thangs and @get('type', true) is 'hero'
|
||||
# TOOD: figure out if/when/how we are doing this for non-Hero levels that aren't expecting denormalization.
|
||||
for levelThang in o.thangs
|
||||
@denormalizeThang(levelThang, supermodel, session)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue